anchor.diff:  %% @doc Syslog/HTTP handler for Logplex.
   %% @end
   -module(logplex_logs_rest).
  +
  +-include("logplex_logging.hrl").
   
   -export([child_spec/0]).
   
  
positive.code:                             {true, Req2, State#state{name=Name,
                                                       channel_id=ChanId}}
                      end;
                  _ ->
                      {{false, <<"Basic realm=Logplex">>}, Req2, State}
              end;
          {_, Req2} ->
              {{false, <<"Basic realm=Logplex">>}, Req2, State}
      end.
  
  
negative.code:                 [_User, TokenId = <<"t.", _/binary>>] ->
                      case logplex_token:lookup(TokenId) of
                          undefined ->
                              ?INFO("at=authorization err=unknown_token token=~p", [TokenId]),
                              {{false, <<"Basic realm=Logplex">>}, Req2, State};
                          Token ->
                              Name = logplex_token:name(Token),
  