chore: remove logger:m_verbose and related method
This commit is contained in:
committed by
Chris Rizzitello
parent
b22fa1550a
commit
1d82be270a
@ -59,14 +59,6 @@ QString printLine(FILE *out, const QString &type, const QString &message, const
|
||||
void Logger::loadEnvVars()
|
||||
{
|
||||
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)
|
||||
|
||||
@ -28,7 +28,6 @@ public:
|
||||
|
||||
void loadEnvVars();
|
||||
void handleMessage(const QtMsgType type, const QString &fileLine, const QString &message);
|
||||
void logVerbose(const QString &message) const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void newLine(const QString &line);
|
||||
@ -36,12 +35,6 @@ Q_SIGNALS:
|
||||
private:
|
||||
static Logger s_instance;
|
||||
bool m_debug = kDebug;
|
||||
bool m_verbose = false;
|
||||
};
|
||||
|
||||
inline void logVerbose(const QString &message)
|
||||
{
|
||||
Logger::instance().logVerbose(message);
|
||||
}
|
||||
|
||||
} // namespace deskflow::gui
|
||||
|
||||
Reference in New Issue
Block a user