print cache location

This commit is contained in:
Patrick von Reth 2014-02-24 18:49:43 +01:00
parent db954b29d9
commit 61cdfc8b1c
3 changed files with 7 additions and 6 deletions

View File

@ -92,16 +92,16 @@ SnoreLog::SnoreLog(SnoreDebugLevels lvl):
SnoreLog::~SnoreLog() SnoreLog::~SnoreLog()
{ {
if(Loger::debugLvl() >= m_lvl)
{
Loger::outStream() << m_msg << "\n";
Loger::outStream().flush();
}
if(Loger::isLogToFileEnabled()) if(Loger::isLogToFileEnabled())
{ {
Loger::logFile() << m_msg << "\n"; Loger::logFile() << m_msg << "\n";
Loger::logFile().flush(); Loger::logFile().flush();
} }
if(Loger::debugLvl() >= m_lvl)
{
Loger::outStream() << m_msg << "\n";
Loger::outStream().flush();
}
} }
void SnoreLog::setDebugLvl(int i) void SnoreLog::setDebugLvl(int i)

View File

@ -227,9 +227,9 @@ const QDir &PluginContainer::pluginDir()
QString appDir = qApp->applicationDirPath(); QString appDir = qApp->applicationDirPath();
QStringList list; QStringList list;
#ifdef Q_OS_MAC #ifdef Q_OS_MAC
list << appDir;
if ( appDir == "MacOS" ) if ( appDir == "MacOS" )
{ {
list << appDir;
QDir dir(appDir); QDir dir(appDir);
// Development convenience-hack // Development convenience-hack
dir.cdUp(); dir.cdUp();

View File

@ -102,6 +102,7 @@ private:
if(_cache == NULL) if(_cache == NULL)
{ {
_cache = new QSettings("SnoreNotify","libsnore"); _cache = new QSettings("SnoreNotify","libsnore");
snoreDebug( SNORE_DEBUG ) << _cache->fileName();
_cache->beginGroup( SnoreCorePrivate::computeHash(pluginDir().absolutePath().toLatin1())); _cache->beginGroup( SnoreCorePrivate::computeHash(pluginDir().absolutePath().toLatin1()));
} }
return *_cache; return *_cache;