Logging: add a global storage dump method

This commit is contained in:
Adriaan de Groot 2017-06-06 05:46:12 -04:00
parent 17b8a9d884
commit d29acf4a06
2 changed files with 13 additions and 0 deletions

View File

@ -18,6 +18,8 @@
#include "GlobalStorage.h"
#include "utils/Logger.h"
#ifdef WITH_PYTHON
#include "PythonHelper.h"
@ -80,6 +82,15 @@ GlobalStorage::value( const QString& key ) const
return m.value( key );
}
void
GlobalStorage::debugDump() const
{
for ( auto it = m.cbegin(); it != m.cend(); ++it )
{
cDebug() << it.key() << '\t' << it.value();
}
}
} // namespace Calamares
#ifdef WITH_PYTHON

View File

@ -57,6 +57,8 @@ public:
int remove( const QString& key );
QVariant value( const QString& key ) const;
void debugDump() const;
signals:
void changed();