diff options
Diffstat (limited to 'src/HttpServerCommand.cc')
| -rw-r--r-- | src/HttpServerCommand.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/HttpServerCommand.cc b/src/HttpServerCommand.cc index 2f1c8fd0..13ba4730 100644 --- a/src/HttpServerCommand.cc +++ b/src/HttpServerCommand.cc @@ -137,8 +137,10 @@ bool HttpServerCommand::execute() } } } catch(RecoverableException& e) { - logger->info("CUID#%d - Error occurred while reading HTTP request", - e, cuid); + if(logger->info()) { + logger->info("CUID#%s - Error occurred while reading HTTP request", + e, util::itos(cuid).c_str()); + } return true; } |
