set agent debugging log level to info
This commit is contained in:
parent
3bb89670bd
commit
d1cfbaa87c
1 changed files with 2 additions and 1 deletions
|
|
@ -587,9 +587,10 @@ defmodule ToweropsWeb.AgentChannel do
|
|||
"#{Integer.to_string(a, 16)}:#{Integer.to_string(b, 16)}:#{Integer.to_string(c, 16)}:#{Integer.to_string(d, 16)}:#{Integer.to_string(e, 16)}:#{Integer.to_string(f, 16)}:#{Integer.to_string(g, 16)}:#{Integer.to_string(h, 16)}"
|
||||
|
||||
# Debug logging helper - only logs when debug is enabled for this agent
|
||||
# Uses :info level since production logger filters out :debug
|
||||
defp maybe_debug_log(socket, message, metadata) do
|
||||
if socket.assigns[:debug_enabled] do
|
||||
Logger.debug(
|
||||
Logger.info(
|
||||
message,
|
||||
Keyword.merge(
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue