Change log level for existing metric
This commit is contained in:
parent
ec2f758c9f
commit
e30c0ac31d
|
@ -377,7 +377,7 @@ handle_call({create, Type, Name}, _From, State = #state{next_idx = ?MAX_SIZE}) -
|
||||||
handle_call({create, Type, Name}, _From, State = #state{next_idx = NextIdx}) ->
|
handle_call({create, Type, Name}, _From, State = #state{next_idx = NextIdx}) ->
|
||||||
case ets:lookup(?TAB, Name) of
|
case ets:lookup(?TAB, Name) of
|
||||||
[#metric{idx = Idx}] ->
|
[#metric{idx = Idx}] ->
|
||||||
?LOG(warning, "~s already exists.", [Name]),
|
?LOG(info, "~s already exists.", [Name]),
|
||||||
{reply, {ok, Idx}, State};
|
{reply, {ok, Idx}, State};
|
||||||
[] ->
|
[] ->
|
||||||
Metric = #metric{name = Name, type = Type, idx = NextIdx},
|
Metric = #metric{name = Name, type = Type, idx = NextIdx},
|
||||||
|
|
Loading…
Reference in New Issue