summaryrefslogtreecommitdiff
path: root/rotord/rotord.h
diff options
context:
space:
mode:
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);
}