Logging: add a global storage dump method
This commit is contained in:
parent
06739955bb
commit
8f6d08d23e
@ -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…
Reference in New Issue
Block a user