Fix online_logging argument because --log-api returns 'yes' but --no-log-api returns 0.

This commit is contained in:
Daniel Nichter
2013-06-11 11:13:25 -07:00
parent a54f59626f
commit 58cddd28ef

View File

@@ -5282,7 +5282,7 @@ sub main {
$logger = Percona::Agent::Logger->new( $logger = Percona::Agent::Logger->new(
exit_status => \$exit_status, exit_status => \$exit_status,
pid => $PID, pid => $PID,
online_logging => $o->get('log-api'), online_logging => $o->get('log-api') ? 1 : 0,
); );
# ######################################################################## # ########################################################################