refactor: Settings Allow all log levels to be shown in the Gui
This commit is contained in:
@ -101,7 +101,7 @@ QVariant Settings::defaultValue(const QString &key)
|
||||
return QStringLiteral("%1/%2").arg(QDir::homePath(), kDefaultLogFile);
|
||||
|
||||
if (key == Log::Level)
|
||||
return 0;
|
||||
return 4; // INFO
|
||||
|
||||
if (key == Client::Binary)
|
||||
return kCoreBinName;
|
||||
|
||||
@ -147,7 +147,11 @@ private:
|
||||
|
||||
// clang-format off
|
||||
inline static const QStringList m_logLevels = {
|
||||
QStringLiteral("INFO")
|
||||
QStringLiteral("FATAL")
|
||||
, QStringLiteral("ERROR")
|
||||
, QStringLiteral("WARNING")
|
||||
, QStringLiteral("NOTE")
|
||||
, QStringLiteral("INFO")
|
||||
, QStringLiteral("DEBUG")
|
||||
, QStringLiteral("DEBUG1")
|
||||
, QStringLiteral("DEBUG2")
|
||||
|
||||
@ -418,6 +418,26 @@
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QComboBox" name="comboLogLevel">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Fatal</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Error</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Warning</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Note</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Info</string>
|
||||
|
||||
Reference in New Issue
Block a user