mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
Readd sending log files
This commit is contained in:
@@ -20,8 +20,11 @@
|
|||||||
|
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <QApplication>
|
||||||
|
#include <QFileInfo>
|
||||||
|
|
||||||
#include "utils/TomahawkUtils.h"
|
#include "utils/TomahawkUtils.h"
|
||||||
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
|
|
||||||
const char* k_usage =
|
const char* k_usage =
|
||||||
@@ -98,15 +101,11 @@ int main( int argc, char* argv[] )
|
|||||||
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
// send log
|
||||||
// // add logfile
|
QFile logFile( Logger::logFile() );
|
||||||
// body += "--thkboundary\r\n";
|
logFile.open( QFile::ReadOnly );
|
||||||
// body += "Content-Disposition: form-data; name=\"upload_file_tomahawklog\"; filename=\"Tomahawk.log\"\r\n";
|
reporter.setReportData( "upload_file_tomahawklog", qCompress( logFile.readAll() ), "application/x-gzip", QFileInfo( Logger::logFile() ).fileName().toUtf8());
|
||||||
// body += "Content-Type: application/x-gzip\r\n";
|
logFile.close();
|
||||||
// body += "\r\n";
|
|
||||||
// body += qCompress( contents( LOGFILE ) );
|
|
||||||
// body += "\r\n";
|
|
||||||
// body += "--thkboundary--\r\n";
|
|
||||||
|
|
||||||
reporter.show();
|
reporter.show();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user