1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-11-23 00:33:44 +00:00

Add some debug logging and change level to trace.

This commit is contained in:
King_DuckZ 2017-05-16 19:14:22 +01:00
parent ed4a02f4bb
commit 8345c300a8
2 changed files with 3 additions and 1 deletions

View file

@ -4,5 +4,5 @@ redis_port = 6379
redis_mode = inet
base_uri = http://127.0.0.1:8080
website_root = @CMAKE_CURRENT_BINARY_DIR@/html
logging_level = debug
logging_level = trace
log_file = @CMAKE_CURRENT_BINARY_DIR@/tawashi.log

View file

@ -143,6 +143,7 @@ int main (int parArgc, char* parArgv[], char* parEnvp[]) {
fill_defaults(*settings);
auto statuslog = setup_logging(*settings);
SPDLOG_DEBUG(statuslog, "tawashi started");
statuslog->info("Loaded config: \"{}\"", config_file_path());
auto cgi_env = SafeStackObject<tawashi::cgi::Env>(parEnvp);
@ -157,5 +158,6 @@ int main (int parArgc, char* parArgv[], char* parEnvp[]) {
std::unique_ptr<Response> response = resp_factory.make_response(cgi_env->path_info().substr(1));
response->send();
SPDLOG_DEBUG(statuslog, "tawashi done, quitting");
return 0;
}