chore: remove logger:m_verbose and related method
This commit is contained in:
parent
b22fa1550a
commit
1d82be270a
2 changed files with 0 additions and 15 deletions
|
|
@ -59,14 +59,6 @@ QString printLine(FILE *out, const QString &type, const QString &message, const
|
||||||
void Logger::loadEnvVars()
|
void Logger::loadEnvVars()
|
||||||
{
|
{
|
||||||
m_debug = QVariant(qEnvironmentVariable("DESKFLOW_GUI_DEBUG")).toBool();
|
m_debug = QVariant(qEnvironmentVariable("DESKFLOW_GUI_DEBUG")).toBool();
|
||||||
m_verbose = QVariant(qEnvironmentVariable("DESKFLOW_GUI_VERBOSE")).toBool();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Logger::logVerbose(const QString &message) const
|
|
||||||
{
|
|
||||||
if (m_verbose) {
|
|
||||||
printLine(stdout, "VERBOSE", message);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Logger::handleMessage(const QtMsgType type, const QString &fileLine, const QString &message)
|
void Logger::handleMessage(const QtMsgType type, const QString &fileLine, const QString &message)
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ public:
|
||||||
|
|
||||||
void loadEnvVars();
|
void loadEnvVars();
|
||||||
void handleMessage(const QtMsgType type, const QString &fileLine, const QString &message);
|
void handleMessage(const QtMsgType type, const QString &fileLine, const QString &message);
|
||||||
void logVerbose(const QString &message) const;
|
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void newLine(const QString &line);
|
void newLine(const QString &line);
|
||||||
|
|
@ -36,12 +35,6 @@ Q_SIGNALS:
|
||||||
private:
|
private:
|
||||||
static Logger s_instance;
|
static Logger s_instance;
|
||||||
bool m_debug = kDebug;
|
bool m_debug = kDebug;
|
||||||
bool m_verbose = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inline void logVerbose(const QString &message)
|
|
||||||
{
|
|
||||||
Logger::instance().logVerbose(message);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace deskflow::gui
|
} // namespace deskflow::gui
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue