anchor.diff:  create_token(Id, Dict) ->
       case dict_find(<<"ch">>, Dict) of
           undefined ->
  -            error_logger:error_msg("~p ~p ~p ~p ~p~n", [?MODULE, create_token, missing_ch, Id, dict:to_list(Dict)]);
  +            io:format("Error ~p ~p ~p ~p ~p~n", [?MODULE, create_token, missing_ch, Id, dict:to_list(Dict)]);
           Val1 ->
               Ch = list_to_integer(binary_to_list(Val1)),
               Name = dict_find(<<"name">>, Dict), 
  
positive.code: remove_token_drain_data(DrainId) ->
      case logplex_drain:lookup(DrainId) of
          undefined ->
              error_logger:error_msg("~p ~p ~p ~p~n", [?MODULE, remove_token_drain_data, undefined_drain, DrainId]);
          Drain ->
              case ets:match_object(tokens, #token{id='_', channel_id=Drain#drain.channel_id, name='_', app_id='_', addon='_', drains='_'}) of
                  [] ->
                      error_logger:error_msg("~p ~p ~p ~p~n", [?MODULE, remove_token_drain_data, undefined_tokens, Drain]);
                  Tokens ->
                      ets:insert(tokens, [begin
                          Drains1 = lists:filter(fun(#drain{id=Id}) -> Id =/= DrainId end, Drains),
  
negative.code: populate_token_channel_data([Token|Tail]) when is_record(Token, token) ->
      case logplex_channel:lookup(Token#token.channel_id) of
          undefined ->
              io:format("Error ~p ~p ~p ~p~n", [?MODULE, populate_token_channel_data, undefined_channel, Token]);
          #channel{app_id=AppId, addon=Addon} ->
              ets:insert(tokens, Token#token{app_id=AppId, addon=Addon})
      end,
  