summaryrefslogtreecommitdiff
path: root/rotord
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-09-20 13:59:36 +0100
committerComment <tim@gray.(none)>2013-09-20 13:59:36 +0100
commita740d4167e6dbd95dbd82e5d217761af8ef12b6f (patch)
tree0c0f533c0768cfb412b619fcf6b4ee1246de82e6 /rotord
parentda3e14a2d734fbc33a37419bf93602a91aea0611 (diff)
removed rotating log
Diffstat (limited to 'rotord')
-rw-r--r--rotord/src/libavwrapper.cpp1
-rw-r--r--rotord/src/rotord.cpp2
-rw-r--r--rotord/src/rotord.h8
3 files changed, 6 insertions, 5 deletions
diff --git a/rotord/src/libavwrapper.cpp b/rotord/src/libavwrapper.cpp
index 6b07b62..5525c44 100644
--- a/rotord/src/libavwrapper.cpp
+++ b/rotord/src/libavwrapper.cpp
@@ -212,6 +212,7 @@ bool libav::exporter::record(std::string filename){
//THIS DOES SEEM TO SET CONTAINER OPTS= AS MOOV_SIZE MAKES THE MOVIE BANJAXED
//av_dict_set(&opts, "moov_size", "20000", 0);
+ av_dict_set(&opts, "movflags","frag_keyframe", 0);
// Write the stream header, if any. //
diff --git a/rotord/src/rotord.cpp b/rotord/src/rotord.cpp
index 94964eb..e7c68cf 100644
--- a/rotord/src/rotord.cpp
+++ b/rotord/src/rotord.cpp
@@ -358,7 +358,7 @@ int RotorServer::main(const std::vector<std::string>& args){
unsigned short port;
- Logger& logger = Logger::get("Rotor");
+ static Logger& logger = Logger::get("Rotor");
xmlIO xml;
if(xml.loadFile("settings.xml") ){
diff --git a/rotord/src/rotord.h b/rotord/src/rotord.h
index ecdfefc..0eb1eb3 100644
--- a/rotord/src/rotord.h
+++ b/rotord/src/rotord.h
@@ -126,14 +126,14 @@ int main(int argc, char** argv)
AutoPtr<SplitterChannel> splitterChannel(new SplitterChannel());
AutoPtr<Channel> consoleChannel(new ConsoleChannel());
AutoPtr<Channel> fileChannel(new FileChannel("Rotord.log"));
- AutoPtr<FileChannel> rotatedFileChannel(new FileChannel("Rotord_R.log"));
+ //AutoPtr<FileChannel> rotatedFileChannel(new FileChannel("Rotord_R.log"));
- rotatedFileChannel->setProperty("rotation", "100");
- rotatedFileChannel->setProperty("archive", "timestamp");
+ //rotatedFileChannel->setProperty("rotation", "100");
+ //rotatedFileChannel->setProperty("archive", "timestamp");
splitterChannel->addChannel(consoleChannel);
splitterChannel->addChannel(fileChannel);
- splitterChannel->addChannel(rotatedFileChannel);
+ //splitterChannel->addChannel(rotatedFileChannel);
AutoPtr<Formatter> formatter(new PatternFormatter("%d-%m-%Y %H:%M:%S %s: %t"));
AutoPtr<Channel> formattingChannel(new FormattingChannel(formatter, splitterChannel));