From 14bbe13c45e6c19f0e45e41881206ac115c91b5a Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 16 Aug 2018 00:46:46 -0700 Subject: [PATCH] modules/vm: Minor cleanup. --- modules/vm.cc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/modules/vm.cc b/modules/vm.cc index eb9883802..d2e5f3abd 100644 --- a/modules/vm.cc +++ b/modules/vm.cc @@ -440,9 +440,12 @@ try }; if(eval.copts->debuglog_precommit) - log.debug("injecting event(mark +%ld) %s", - vm::current_sequence, - pretty_oneline(event)); + log::debug + { + log, "injecting event(mark +%ld) %s", + vm::current_sequence, + pretty_oneline(event) + }; check_size(event); commit_hook(event); @@ -484,10 +487,16 @@ try vm::accept(accepted); if(opts.debuglog_accept) - log.debug("%s", pretty_oneline(event)); + log::debug + { + log, "%s", pretty_oneline(event) + }; if(opts.infolog_accept) - log.info("%s", pretty_oneline(event)); + log::debug + { + log, "%s", pretty_oneline(event) + }; return ret; }