From 87a34b062f417714377b8639854e49993819ae14 Mon Sep 17 00:00:00 2001 From: Alex Schmidt Date: Thu, 7 Feb 2013 11:01:58 +0100 Subject: [PATCH] writing some log messages to log file instead of cerr. --- writeout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/writeout.cpp b/writeout.cpp index 67e90d3..19625ec 100644 --- a/writeout.cpp +++ b/writeout.cpp @@ -85,7 +85,7 @@ writeout::~writeout() if( (nextfile=getdatfile()) == "" ) sleep(1); else { - cerr << "collecting " << nextfile << endl; + logf << "collecting " << nextfile << endl; ifstream myfile( (fulldir + "/" + nextfile).c_str() ); while(true){ @@ -121,7 +121,7 @@ string writeout::getdatfile() struct dirent *dirp; if((dp = opendir(fulldir.c_str())) == NULL) { - cerr << "Error(" << errno << ") opening " << fulldir << endl; + logf << "Error(" << errno << ") opening " << fulldir << endl; return ""; } -- 2.39.5