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