Logger::instance()->enterNextLogFile();
- qCDebug(lcApplication) << QString::fromLatin1( "################## %1 %2 (%3) %4 on %5").arg(_theme->appName())
+ qCInfo(lcApplication) << QString::fromLatin1( "################## %1 locale:[%2] ui_lang:[%3] version:[%4] os:[%5]").arg(_theme->appName())
.arg( QLocale::system().name() )
.arg(property("ui_lang").toString())
.arg(_theme->version())
void LockWatcher::addFile(const QString& path)
{
- qCDebug(lcLockWatcher) << "Watching for lock of" << path << "being released";
+ qCInfo(lcLockWatcher) << "Watching for lock of" << path << "being released";
_watchedPaths.insert(path);
}
foreach (const QString& path, _watchedPaths) {
if (!FileSystem::isFileLocked(path)) {
- qCDebug(lcLockWatcher) << "Lock of" << path << "was released";
+ qCInfo(lcLockWatcher) << "Lock of" << path << "was released";
emit fileUnlocked(path);
unlocked.insert(path);
}
void AbstractNetworkJob::slotTimeout()
{
_timedout = true;
- qCDebug(lcNetworkJob) << this << "Timeout" << (reply() ? reply()->request().url() : path());
+ qCWarning(lcNetworkJob) << "Network job timeout" << (reply() ? reply()->request().url() : path());
onTimedOut();
}
break;
}
- qCInfo(lcPropagator) << "Completed propagation of" << _item->destination() << "by" << this << "with status" << _item->_status << "and error:" << _item->_errorString;
+ if (_item->hasErrorStatus())
+ qCWarning(lcPropagator) << "Could not complete propagation of" << _item->destination() << "by" << this << "with status" << _item->_status << "and error:" << _item->_errorString;
+ else
+ qCInfo(lcPropagator) << "Completed propagation of" << _item->destination() << "by" << this << "with status" << _item->_status;
emit propagator()->itemCompleted(_item);
emit finished(_item->_status);
{
foreach(auto *job, _jobs) {
if (job->reply()) {
- qCDebug(lcPropagateUpload) << job << this->_item->_file;
job->reply()->abort();
}
}
if (progressInfo._valid && Utility::qDateTimeToTime_t(progressInfo._modtime) == _item->_modtime ) {
_startChunk = progressInfo._chunk;
_transferId = progressInfo._transferid;
- qCDebug(lcPropagateUpload) << _item->_file << ": Resuming from chunk " << _startChunk;
+ qCInfo(lcPropagateUpload) << _item->_file << ": Resuming from chunk " << _startChunk;
}
_currentChunk = 0;
}
if( Utility::fsCasePreserving() && propagator()->localFileNameClash(_item->_file ) ) {
- qCDebug(lcPropagateLocalMkdir) << "WARN: new folder to create locally already exists!";
+ qCWarning(lcPropagateLocalMkdir) << "New folder to create locally already exists with different case:" << _item->_file;
done( SyncFileItem::NormalError, tr("Attention, possible case sensitivity clash with %1").arg(newDirStr) );
return;
}
void SyncEngine::abort()
{
+ if (_propagator)
+ qCInfo(lcEngine) << "Aborting sync";
+
// Sets a flag for the update phase
csync_request_abort(_csync_ctx);
- qCDebug(lcEngine) << "Aborting sync, _discoveryMainThread:" << _discoveryMainThread;
+
// Aborts the discovery phase job
if (_discoveryMainThread) {
_discoveryMainThread->abort();