Closed adamu closed 3 months ago
Make the return type of telemetry_logging_handler conform to its spec.
telemetry_logging_handler
Currently, if the if level = level(level, conn) condition fails, the function returns nil, not :ok as specified.
if level = level(level, conn)
nil
:ok
@adamu thank you! Can you please add a test to make sure this case is covered too? Other than that LGTM.
coverage: 100.0%. remained the same when pulling b6a31b8cd07c87000612402efbdf1274df2c7966 on adamu:ok into cad59792e2ce06d489ce3e7a526f55b4a1fd05ab on Nebo15:master.
@AndrewDryga added!
Make the return type of
telemetry_logging_handler
conform to its spec.Currently, if the
if level = level(level, conn)
condition fails, the function returnsnil
, not:ok
as specified.