From 61cdfc8b1c0ad9d9af532a4a2c7aad4501b291cd Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Mon, 24 Feb 2014 18:49:43 +0100 Subject: [PATCH] print cache location --- src/core/log.cpp | 10 +++++----- src/core/plugins/plugincontainer.cpp | 2 +- src/core/plugins/plugincontainer.h | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/core/log.cpp b/src/core/log.cpp index 01fb1ba..82639da 100644 --- a/src/core/log.cpp +++ b/src/core/log.cpp @@ -92,16 +92,16 @@ SnoreLog::SnoreLog(SnoreDebugLevels lvl): SnoreLog::~SnoreLog() { - if(Loger::debugLvl() >= m_lvl) - { - Loger::outStream() << m_msg << "\n"; - Loger::outStream().flush(); - } if(Loger::isLogToFileEnabled()) { Loger::logFile() << m_msg << "\n"; Loger::logFile().flush(); } + if(Loger::debugLvl() >= m_lvl) + { + Loger::outStream() << m_msg << "\n"; + Loger::outStream().flush(); + } } void SnoreLog::setDebugLvl(int i) diff --git a/src/core/plugins/plugincontainer.cpp b/src/core/plugins/plugincontainer.cpp index ba95bd7..789dad3 100644 --- a/src/core/plugins/plugincontainer.cpp +++ b/src/core/plugins/plugincontainer.cpp @@ -227,9 +227,9 @@ const QDir &PluginContainer::pluginDir() QString appDir = qApp->applicationDirPath(); QStringList list; #ifdef Q_OS_MAC - list << appDir; if ( appDir == "MacOS" ) { + list << appDir; QDir dir(appDir); // Development convenience-hack dir.cdUp(); diff --git a/src/core/plugins/plugincontainer.h b/src/core/plugins/plugincontainer.h index c84d91c..bfd1add 100644 --- a/src/core/plugins/plugincontainer.h +++ b/src/core/plugins/plugincontainer.h @@ -102,6 +102,7 @@ private: if(_cache == NULL) { _cache = new QSettings("SnoreNotify","libsnore"); + snoreDebug( SNORE_DEBUG ) << _cache->fileName(); _cache->beginGroup( SnoreCorePrivate::computeHash(pluginDir().absolutePath().toLatin1())); } return *_cache;