anchor.diff:  
   handle(<<"GET">>, <<"/logs">>, Req) ->
       with_bench_id(Req, fun(Id) ->
  -        #{config:= Config} = mzb_api_server:status(Id),
  +        #{config:= Config} = Status = mzb_api_server:status(Id),
           #{log_compression:= Compression} = Config,
           ContentEncoding =
               case Compression of
  
positive.code: -module(mzb_api_endpoints).
  
  -export([init/2, info/3, terminate/3]).
  
  init(Req, _Opts) ->
      try
  
negative.code:         Filename = mzb_api_bench:metrics_file(Config),
          Headers = [{<<"content-type">>, <<"text/plain">>},
                     {<<"content-encoding">>, ContentEncoding}],
          case bench_finished(Status) of
              true ->
                  {ok, #file_info{size = FileSize}} = file:read_file_info(Filename),
                  F = fun (Socket, Transport) ->
                      Transport:sendfile(Socket, Filename)
                  end,
                  Req2 = cowboy_req:set_resp_body_fun(FileSize, F, Req),
                  {ok, cowboy_req:reply(200, Headers, Req2), #{}};
              false ->
                  Req2 = cowboy_req:chunked_reply(200, Headers, Req),
                  stream_from_file(Filename, Id, Req2),
                  {ok, Req2, #{}}
          end
      end);
  
  handle(<<"GET">>, <<"/email_report">>, Req) ->
  