Project

General

Profile

Bug #765 » logging.diff

herrlado, 11/11/2011 10:52 PM

View differences:

vdr-vdrmanager/helpers.cpp
string result = "START\r\n";
// iterate through all recordings
cRecording* recording = NULL;
string serrecord;
for (int i = 0; i < Recordings.Count(); i++) {
recording = Recordings.Get(i);
result += ToText(recording);
serrecord = ToText(recording);
esyslog( "vdrmanager: serialized recording %s", serrecord.c_str());
result += serrecord;
}
return result + "END\r\n";
}
......
}
string cHelpers::ToText(cRecording * recording) {
esyslog( "vdrmanager: serialize a recording %s added", *recording->Info()->Title());
const cRecordingInfo * info = recording->Info();
const cEvent * event = info->GetEvent();
(1-1/2)