print cache location
This commit is contained in:
parent
db954b29d9
commit
61cdfc8b1c
|
@ -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)
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue