Set logger level to info in development to prevent credential exposure

SNMPKit library logs complete SNMP messages at debug level, which
includes the community string (credential). Setting log level to :info
prevents these debug messages from appearing in development logs.

Production and test environments already use :info and :warning levels.
This commit is contained in:
Graham McIntire 2026-01-05 14:35:09 -06:00
parent d5905cea73
commit cb9c095847
No known key found for this signature in database

View file

@ -3,6 +3,10 @@ import Config
# Do not include metadata nor timestamps in development logs
config :logger, :default_formatter, format: "[$level] $message\n"
# Set minimum log level to info to prevent debug logs from exposing sensitive data
# SNMPKit logs complete SNMP messages at debug level which includes community strings
config :logger, level: :info
# Initialize plugs at runtime for faster development compilation
config :phoenix, :plug_init_mode, :runtime