Skip to content

Commit 377c51a

Browse files
committed
[console] fix console logger
1 parent 0224c5a commit 377c51a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/le_console/le_console.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ static void cb_log_command( Command const* cmd, std::string const& str, std::vec
12431243
le_console_produce_log_subscribers()[ uint32_t( connection->fd ) ].reset( nullptr );
12441244
connection->wants_log_subscriber = false;
12451245
}
1246-
le_log::le_log_channel_i.info( logger.getChannel(), "Client %s updated console log level mask to 0x%x", connection->remote_ip.c_str(), connection->log_level_mask );
1246+
logger.info( "Client %s updated console log level mask to 0x%x", connection->remote_ip.c_str(), connection->log_level_mask );
12471247
} else {
12481248
connection->channel_out.post( "Incorrect number of arguments.\n\rExpecting a single integer argument to specify log level mask.\n\r(E.g. -1 to capture all log levels.)\r\n" );
12491249
}
@@ -1465,15 +1465,15 @@ static void le_console_process_input() {
14651465
} else {
14661466

14671467
if ( !tokens.empty() ) {
1468-
le_log::le_log_channel_i.warn( logger.getChannel(), "Did not recognise command: '%s'", tokens[ 0 ] );
1468+
logger.warn( "Did not recognise command: '%s'", tokens[ 0 ] );
14691469

14701470
std::string msg = "Incorrect command: '";
14711471
msg += tokens[ 0 ];
14721472
msg += "'\n\r";
14731473

14741474
connection->channel_out.post( msg.c_str() );
14751475
} else {
1476-
le_log::le_log_channel_i.warn( logger.getChannel(), "Empty command." );
1476+
logger.warn( "Empty command." );
14771477
}
14781478
}
14791479
} // end for each connection

0 commit comments

Comments
 (0)