Skip to content

Commit

Permalink
reset event_set_log_callback() during test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Apr 3, 2023
1 parent 3e95f50 commit be71a99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ struct logger_gbl_t {
{
event_set_log_callback(&evlog_handler);
}
~logger_gbl_t()
{
event_set_log_callback(nullptr);
}

Level init(logger *logger)
{
Expand Down

0 comments on commit be71a99

Please sign in to comment.