Skip to content

Commit

Permalink
Keep numeric log_levels
Browse files Browse the repository at this point in the history
Co-authored-by: Dawid Kałędkowski <[email protected]>
Signed-off-by: Lluís Revilla <[email protected]>
  • Loading branch information
llrs-roche and gogonzo authored Nov 6, 2024
1 parent 122c688 commit 02454fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/log_shiny_input_changes.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ log_shiny_input_changes <- function(

# Log even if written in lower case or numeric values
log_level <- get_val("TEAL.LOG_LEVEL", "teal.log_level", "INFO")
log_level <- if (!is.numeric(log_level)) toupper(log_level)
if (!is.numeric(log_level)) log_level <- toupper(log_level)
if (logger::TRACE > logger::as.loglevel(log_level)) {
# to avoid setting observers when not needed
return(invisible(NULL))
Expand Down

0 comments on commit 02454fd

Please sign in to comment.