[logUpload] fixes
This commit is contained in:
parent
6726a926a4
commit
6a6557e320
@ -233,4 +233,4 @@ slideshowAPI: 2
|
|||||||
uploadServer :
|
uploadServer :
|
||||||
type : "fiche"
|
type : "fiche"
|
||||||
url : "http://termbin.com:9999"
|
url : "http://termbin.com:9999"
|
||||||
sizeLimit : 20
|
sizeLimit : -1
|
||||||
|
@ -144,7 +144,7 @@ void
|
|||||||
ViewManager::onInstallationFailed( const QString& message, const QString& details )
|
ViewManager::onInstallationFailed( const QString& message, const QString& details )
|
||||||
{
|
{
|
||||||
bool shouldOfferWebPaste
|
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;
|
cError() << "Installation failed:" << message;
|
||||||
cDebug() << Logger::SubEntry << "- message:" << message;
|
cDebug() << Logger::SubEntry << "- message:" << message;
|
||||||
|
@ -40,7 +40,7 @@ logFileContents( qint64 sizeLimit )
|
|||||||
return QByteArray();
|
return QByteArray();
|
||||||
}
|
}
|
||||||
QFileInfo fi( pasteSourceFile );
|
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";
|
cDebug() << "Log upload size limit was set to " << sizeLimit << " bytes";
|
||||||
if ( fi.size() > sizeLimit and sizeLimit > 0 )
|
if ( fi.size() > sizeLimit and sizeLimit > 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user