diff options
author | ipknHama <ipknhama@gmail.com> | 2017-09-18 02:58:53 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2017-09-18 02:58:53 +0900 |
commit | 2c26b6c1def35f7b509f699097fdfb9480e9461c (patch) | |
tree | 3c7097832e5380ed04e6dd5ae6f603059b62c1f9 /include/crow/http_server.h | |
parent | e93ba25f2cd156a6544a3c9894cd667906146874 (diff) | |
download | crow-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.h | 1 |
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*/){ |