diff options
author | deva <deva> | 2009-11-19 09:25:09 +0000 |
---|---|---|
committer | deva <deva> | 2009-11-19 09:25:09 +0000 |
commit | 879842169b40803c6d74281e9cd60f6e59d49d78 (patch) | |
tree | f2dcb17d2bc26db27805372ecb366eda134656a0 /server | |
parent | f652ad6d52c9f493125e8818bf198e7e84c63987 (diff) |
Write livesessions warning to log file.
Diffstat (limited to 'server')
-rw-r--r-- | server/src/server.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/src/server.cc b/server/src/server.cc index 1b2a05c..b9b3743 100644 --- a/server/src/server.cc +++ b/server/src/server.cc @@ -60,6 +60,7 @@ #include "templatelist.h" #include "versionstr.h" #include "mutex.h" +#include "log.h" typedef long long unsigned int sessionid_t; @@ -496,8 +497,11 @@ void server() while(pracro_is_running) sleep(1); if(!forceshutdown && conn.sessions.size() != 0) { - PRACRO_ERR_LOG(server, "There are %d live sesions." - " Kill again to force shutdown.\n", conn.sessions.size()); + char errbuf[128]; + snprintf(errbuf, sizeof(errbuf), "There are %d live sessions." + " Kill again to force shutdown.\n", conn.sessions.size()); + PRACRO_ERR_LOG(server, errbuf); + log(errbuf); pracro_is_running = true; forceshutdown = true; goto again; |