-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To match the changes implemented in [appsignal-agent#730][agent], the implementation of `Appsignal.Config.debug?/0`, which is in turn used by `Appsignal.Logger.debug/1`, is modified to use valid `log_level` config values as its source of truth, and fall back on the deprecated `debug` and `transaction_debug_mode` config options only if no valid `log_level` value is present. Before this change, this method only checked the `debug` config option, not `transaction_debug_mode`. In order to be consistent with the changes to the agent (`transaction_debug_mode` implies `debug`, because a log level of "trace" implies "debug") this method now checks `transaction_debug_mode` as well. Fixes #746. [agent]: appsignal/appsignal-agent#730
- Loading branch information
Showing
4 changed files
with
71 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
bump: "patch" | ||
type: "fix" | ||
--- | ||
|
||
Prefer the value of the `log_level` config option, instead of the deprecated `debug` config option, when deciding whether to log a debug message. If `log_level` does not have a value, or its value is invalid, the values of the deprecated `debug` and `transaction_debug_mode` config options are taken into account. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters