aboutsummaryrefslogtreecommitdiffstats
path: root/include/crow/http_server.h
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2017-09-18 02:58:53 +0900
committeripknHama <ipknhama@gmail.com>2017-09-18 02:58:53 +0900
commit2c26b6c1def35f7b509f699097fdfb9480e9461c (patch)
tree3c7097832e5380ed04e6dd5ae6f603059b62c1f9 /include/crow/http_server.h
parente93ba25f2cd156a6544a3c9894cd667906146874 (diff)
downloadcrow-2c26b6c1def35f7b509f699097fdfb9480e9461c.tar.gz
crow-2c26b6c1def35f7b509f699097fdfb9480e9461c.zip
Change default settings
- disable crow debug mode by default - expose `loglevel` method on `App` to change the logging level easily - add a startup message that guides how to change the logging level
Diffstat (limited to 'include/crow/http_server.h')
-rw-r--r--include/crow/http_server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/crow/http_server.h b/include/crow/http_server.h
index f190739..6aa070e 100644
--- a/include/crow/http_server.h
+++ b/include/crow/http_server.h
@@ -150,6 +150,7 @@ namespace crow
CROW_LOG_INFO << server_name_ << " server is running at " << bindaddr_ <<":" << port_
<< " using " << concurrency_ << " threads";
+ CROW_LOG_INFO << "Call `app.loglevel(crow::LogLevel::Warning)` to hide Info level logs.";
signals_.async_wait(
[&](const boost::system::error_code& /*error*/, int /*signal_number*/){