[logUpload] fixes

This commit is contained in:
Anubhav Choudhary 2021-03-29 13:22:56 -06:00
parent 6726a926a4
commit 6a6557e320
3 changed files with 3 additions and 3 deletions

View File

@ -233,4 +233,4 @@ slideshowAPI: 2
uploadServer :
type : "fiche"
url : "http://termbin.com:9999"
sizeLimit : 20
sizeLimit : -1

View File

@ -144,7 +144,7 @@ void
ViewManager::onInstallationFailed( const QString& message, const QString& details )
{
bool shouldOfferWebPaste
= std::get<2>(Calamares::Branding::instance()->uploadServer()) != Calamares::Branding::UploadServerType::None;
= std::get<0>(Calamares::Branding::instance()->uploadServer()) != Calamares::Branding::UploadServerType::None;
cError() << "Installation failed:" << message;
cDebug() << Logger::SubEntry << "- message:" << message;

View File

@ -40,7 +40,7 @@ logFileContents( qint64 sizeLimit )
return QByteArray();
}
QFileInfo fi( pasteSourceFile );
sizeLimit *= 1024; //For KiB to bytes
sizeLimit = ( sizeLimit < 0 ) ? 1024*1024 : sizeLimit * 1024; //For KiB to bytes
cDebug() << "Log upload size limit was set to " << sizeLimit << " bytes";
if ( fi.size() > sizeLimit and sizeLimit > 0 )
{