Logging: add a global storage dump method

main
Adriaan de Groot 7 years ago
parent 17b8a9d884
commit d29acf4a06

@ -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

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

Loading…
Cancel
Save