NOISSUE remove debug dump to file in paste upload

This commit is contained in:
Petr Mrázek 2017-10-11 09:13:26 +02:00
parent 1388751fd4
commit ab870648bd

View File

@ -59,11 +59,6 @@ void PasteUpload::downloadError(QNetworkReply::NetworkError error)
void PasteUpload::downloadFinished() void PasteUpload::downloadFinished()
{ {
QByteArray data = m_reply->readAll(); QByteArray data = m_reply->readAll();
qDebug() << "RECEIVED" << data;
QFile out("/tmp/RECEIVED.json");
out.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate);
out.write(data);
out.close();
// if the download succeeded // if the download succeeded
if (m_reply->error() == QNetworkReply::NetworkError::NoError) if (m_reply->error() == QNetworkReply::NetworkError::NoError)
{ {