I was running it to a situation where I set the log_level of a Logger middleware to always be :debug, but I was still seeing log output with the Logger log_level set to warn.
Looking at the code, it does something slightly different than was the documentation says.
If the request returns {:error, whatever}, the log level is always set to :error, the custom log level function is never called. The custom log level is only used when an {:ok, ...} is returned.
I was running it to a situation where I set the log_level of a Logger middleware to always be
:debug
, but I was still seeing log output with the Logger log_level set towarn
.Looking at the code, it does something slightly different than was the documentation says.
If the request returns {:error, whatever}, the log level is always set to :error, the custom log level function is never called. The custom log level is only used when an {:ok, ...} is returned.