Log if fail to open file

This commit is contained in:
craig.p.drummond
2014-01-02 19:06:52 +00:00
committed by craig.p.drummond
parent 2273b27f15
commit 61dc2ad276

View File

@@ -433,7 +433,7 @@ void HttpSocket::readClient()
QFile f(song.file);
if (f.open(QIODevice::ReadOnly)) {
if (f.open(QIODevice::ReadOnly)) {
qint32 totalBytes = f.size();
writeMimeType(detectMimeType(song.file), socket, readBytesFrom, totalBytes, true);
@@ -464,6 +464,8 @@ void HttpSocket::readClient()
}
} while (readPos<totalBytes && !stop && !terminated);
}
} else {
DBUG << "Filed to open" << song.file;
}
}
}