summaryrefslogtreecommitdiff
path: root/rotord/rotord.h
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-07-17 14:55:08 +0100
committerTim Redfern <tim@herge.(none)>2013-07-17 14:55:08 +0100
commit7e3657d7783b7a6cdb48719d17ec3ac381dd8ae7 (patch)
treee689435ec5340dba3b6c60486db381ed9be5f5cd /rotord/rotord.h
parentb86e859b9796468ef8b0d19ebd9f5f302101464c (diff)
logging http responses
Diffstat (limited to 'rotord/rotord.h')
-rwxr-xr-xrotord/rotord.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/rotord/rotord.h b/rotord/rotord.h
index da987b0..7656c28 100755
--- a/rotord/rotord.h
+++ b/rotord/rotord.h
@@ -26,7 +26,6 @@
#include <sstream>
#include "Poco/URI.h"
#include "Poco/Channel.h"
-#include "Poco/Logger.h"
#include "Poco/SplitterChannel.h"
#include "Poco/ConsoleChannel.h"
#include "Poco/FormattingChannel.h"
@@ -107,6 +106,8 @@ class RotorServer: public Poco::Util::ServerApplication
bool _helpRequested;
};
+RotorServer app; //needs to be global for logger
+
int main(int argc, char** argv)
{
AutoPtr<SplitterChannel> splitterChannel(new SplitterChannel());
@@ -130,6 +131,6 @@ int main(int argc, char** argv)
logger.information("starting rendering daemon");
HTTPStreamFactory::registerFactory();
- RotorServer app;
+
return app.run(argc, argv);
}