Skip to content

Commit 2d4dfe3

Browse files
committed
Track File Export: improve logging
1 parent d836fec commit 2d4dfe3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/library/export/trackexportworker.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ QMap<QString, mixxx::FileInfo> createCopylist(const TrackPointerList& tracks) {
3232
auto fileInfo = pTrack->getFileInfo();
3333
if (fileInfo.resolveCanonicalLocation().isEmpty()) {
3434
qWarning()
35-
<< "File not found or inaccessible while exporting"
35+
<< "TrackExportWorker: File not found or inaccessible while exporting"
3636
<< fileInfo;
3737
// Skip file
3838
continue;
@@ -55,7 +55,7 @@ QMap<QString, mixxx::FileInfo> createCopylist(const TrackPointerList& tracks) {
5555
}
5656
if (++duplicateCounter >= 10000) {
5757
qWarning()
58-
<< "Failed to generate a unique file name from"
58+
<< "TrackExportWorker: Failed to generate a unique file name from"
5959
<< fileName
6060
<< "while exporting"
6161
<< fileInfo.location();
@@ -103,7 +103,7 @@ void TrackExportWorker::copyFile(
103103
switch (makeOverwriteRequest(dest_path)) {
104104
case OverwriteAnswer::SKIP:
105105
case OverwriteAnswer::SKIP_ALL:
106-
qDebug() << "skipping" << sourceFilename;
106+
qDebug() << "TrackExportWorker: skipping" << sourceFilename;
107107
return;
108108
case OverwriteAnswer::OVERWRITE:
109109
case OverwriteAnswer::OVERWRITE_ALL:
@@ -115,14 +115,14 @@ void TrackExportWorker::copyFile(
115115
}
116116
break;
117117
case OverwriteMode::SKIP_ALL:
118-
qDebug() << "skipping" << sourceFilename;
118+
qDebug() << "TrackExportWorker: skipping" << sourceFilename;
119119
return;
120120
case OverwriteMode::OVERWRITE_ALL:;
121121
}
122122

123123
// Remove the existing file in preparation for overwriting.
124124
QFile dest_file(dest_path);
125-
qDebug() << "Removing existing file" << dest_path;
125+
qDebug() << "TrackExportWorker: Removing existing file" << dest_path;
126126
if (!dest_file.remove()) {
127127
const QString error_message = tr(
128128
"Error removing file %1: %2. Stopping.").arg(
@@ -134,7 +134,7 @@ void TrackExportWorker::copyFile(
134134
}
135135
}
136136

137-
qDebug() << "Copying" << sourceFilename << "to" << dest_path;
137+
qDebug() << "TrackExportWorker: Copying" << sourceFilename << "to" << dest_path;
138138
QFile source_file(sourceFilename);
139139
if (!source_file.copy(dest_path)) {
140140
const QString error_message = tr(

0 commit comments

Comments
 (0)