Migrate off ConsoleWriterFactory

This commit is contained in:
Peter L Jones 2020-04-10 17:37:19 +01:00
parent 631c473acc
commit 3831e83535
2 changed files with 5 additions and 6 deletions

View file

@ -353,7 +353,7 @@ void CJamRecorder::OnEnd()
if (fi.exists())
{
tsConsole << "CJamRecorder::OnEnd() - " << fi.absolutePath() << " exists and will not be overwritten." << endl;
qWarning() << "CJamRecorder::OnEnd():" << fi.absolutePath() << "exists and will not be overwritten.";
}
else
{
@ -361,7 +361,7 @@ void CJamRecorder::OnEnd()
outf.open(QFile::WriteOnly);
QTextStream out(&outf);
out << CReaperProject(currentSession->Tracks()).toString() << endl;
tsConsole << "Session RPP: " << reaperProjectFileName << endl;
qDebug() << "Session RPP:" << reaperProjectFileName;
}
delete currentSession;
@ -397,7 +397,7 @@ void CJamRecorder::SessionDirToReaper(QString& strSessionDirName)
out << CReaperProject(CJamSession::TracksFromSessionDir(fiSessionDir.absoluteFilePath())).toString() << endl;
(*(new ConsoleWriterFactory())->get()) << "Session RPP: " << reaperProjectFileName << endl;
qDebug() << "Session RPP:" << reaperProjectFileName;
}
/**
@ -408,11 +408,11 @@ void CJamRecorder::OnDisconnected(int iChID)
{
if (!isRecording)
{
tsConsole << "CJamRecorder::OnDisconnected: channel " << iChID << " disconnected but not recording" << endl;
qWarning() << "CJamRecorder::OnDisconnected: channel" << iChID << "disconnected but not recording";
}
if (currentSession == nullptr)
{
tsConsole << "CJamRecorder::OnDisconnected: channel " << iChID << " disconnected but no currentSession" << endl;
qWarning() << "CJamRecorder::OnDisconnected: channel" << iChID << "disconnected but no currentSession";
return;
}
currentSession->DisconnectClient(iChID);

View file

@ -170,7 +170,6 @@ private:
bool isRecording;
CJamSession* currentSession;
QTextStream& tsConsole = *((new ConsoleWriterFactory())->get());
};
}