Commit 3706b6d3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix logFile

parent 3aad7a2a
...@@ -669,14 +669,14 @@ void MBTCPMaster::sysCommand( UniSetTypes::SystemMessage *sm ) ...@@ -669,14 +669,14 @@ void MBTCPMaster::sysCommand( UniSetTypes::SystemMessage *sm )
string fname = unideb.getLogFile(); string fname = unideb.getLogFile();
if( !fname.empty() ) if( !fname.empty() )
{ {
unideb.logFile(fname.c_str()); unideb.logFile(fname);
unideb << myname << "(sysCommand): ***************** UNIDEB LOG ROTATE *****************" << std::endl; unideb << myname << "(sysCommand): ***************** UNIDEB LOG ROTATE *****************" << std::endl;
} }
dlog << myname << "(sysCommand): logRotate" << std::endl; dlog << myname << "(sysCommand): logRotate" << std::endl;
fname = dlog.getLogFile(); fname = dlog.getLogFile();
if( !fname.empty() ) if( !fname.empty() )
{ {
dlog.logFile(fname.c_str()); dlog.logFile(fname);
dlog << myname << "(sysCommand): ***************** dlog LOG ROTATE *****************" << std::endl; dlog << myname << "(sysCommand): ***************** dlog LOG ROTATE *****************" << std::endl;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment