diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-07-17 14:55:08 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-07-17 14:55:08 +0100 |
| commit | 7e3657d7783b7a6cdb48719d17ec3ac381dd8ae7 (patch) | |
| tree | e689435ec5340dba3b6c60486db381ed9be5f5cd /rotord/rotord.h | |
| parent | b86e859b9796468ef8b0d19ebd9f5f302101464c (diff) | |
logging http responses
Diffstat (limited to 'rotord/rotord.h')
| -rwxr-xr-x | rotord/rotord.h | 5 |
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); } |
