Skip to content

Commit 37520b3

Browse files
committed
Track File Export: improve logging
1 parent 9c5a42a commit 37520b3

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
@@ -29,7 +29,7 @@ QMap<QString, mixxx::FileInfo> createCopylist(const TrackPointerList& tracks) {
2929
auto fileInfo = pTrack->getFileInfo();
3030
if (fileInfo.resolveCanonicalLocation().isEmpty()) {
3131
qWarning()
32-
<< "File not found or inaccessible while exporting"
32+
<< "TrackExportWorker: File not found or inaccessible while exporting"
3333
<< fileInfo;
3434
// Skip file
3535
continue;
@@ -52,7 +52,7 @@ QMap<QString, mixxx::FileInfo> createCopylist(const TrackPointerList& tracks) {
5252
}
5353
if (++duplicateCounter >= 10000) {
5454
qWarning()
55-
<< "Failed to generate a unique file name from"
55+
<< "TrackExportWorker: Failed to generate a unique file name from"
5656
<< fileName
5757
<< "while exporting"
5858
<< fileInfo.location();
@@ -100,7 +100,7 @@ void TrackExportWorker::copyFile(
100100
switch (makeOverwriteRequest(dest_path)) {
101101
case OverwriteAnswer::SKIP:
102102
case OverwriteAnswer::SKIP_ALL:
103-
qDebug() << "skipping" << sourceFilename;
103+
qDebug() << "TrackExportWorker: skipping" << sourceFilename;
104104
return;
105105
case OverwriteAnswer::OVERWRITE:
106106
case OverwriteAnswer::OVERWRITE_ALL:
@@ -112,14 +112,14 @@ void TrackExportWorker::copyFile(
112112
}
113113
break;
114114
case OverwriteMode::SKIP_ALL:
115-
qDebug() << "skipping" << sourceFilename;
115+
qDebug() << "TrackExportWorker: skipping" << sourceFilename;
116116
return;
117117
case OverwriteMode::OVERWRITE_ALL:;
118118
}
119119

120120
// Remove the existing file in preparation for overwriting.
121121
QFile dest_file(dest_path);
122-
qDebug() << "Removing existing file" << dest_path;
122+
qDebug() << "TrackExportWorker: Removing existing file" << dest_path;
123123
if (!dest_file.remove()) {
124124
const QString error_message = tr(
125125
"Error removing file %1: %2. Stopping.").arg(
@@ -131,7 +131,7 @@ void TrackExportWorker::copyFile(
131131
}
132132
}
133133

134-
qDebug() << "Copying" << sourceFilename << "to" << dest_path;
134+
qDebug() << "TrackExportWorker: Copying" << sourceFilename << "to" << dest_path;
135135
QFile source_file(sourceFilename);
136136
if (!source_file.copy(dest_path)) {
137137
const QString error_message = tr(

0 commit comments

Comments
 (0)