Skip to content

Commit

Permalink
Better error message in LogEvent$initiliaze if logger is not a <Log…
Browse files Browse the repository at this point in the history
…ger>
  • Loading branch information
stefan-fleck committed Sep 5, 2022
1 parent f55e68d commit cacbfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/LogEvent.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ LogEvent <- R6::R6Class(
msg = NA,
...
){
assert(inherits(logger, "Logger"))
assert(inherits(logger, "Logger"), "Logger must be a <Logger> object, not a", class_fmt(logger))

# assign has less overhead than [[ and event creation needs to be as fast
# as possible
Expand Down

0 comments on commit cacbfd8

Please sign in to comment.