Change log level for existing metric

This commit is contained in:
zhouzb 2019-12-10 17:20:21 +08:00
parent ec2f758c9f
commit e30c0ac31d
1 changed files with 1 additions and 1 deletions

View File

@ -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}) ->
case ets:lookup(?TAB, Name) of
[#metric{idx = Idx}] ->
?LOG(warning, "~s already exists.", [Name]),
?LOG(info, "~s already exists.", [Name]),
{reply, {ok, Idx}, State};
[] ->
Metric = #metric{name = Name, type = Type, idx = NextIdx},