logic: fixed crash that occurred in some cases when logging the clang invocation
This commit is contained in:
@@ -35,7 +35,7 @@ void LogManager::setLoggingEnabled(bool enabled)
|
||||
if (enabled)
|
||||
{
|
||||
LOG_INFO(
|
||||
std::string("Enabled logging for Sourcetrail ") +
|
||||
std::string("Enabled logging for Sourcetrail ") +
|
||||
(utility::getApplicationArchitectureType() == APPLICATION_ARCHITECTURE_X86_32 ? "32" : "64") + " bit, " +
|
||||
"version " + Version::getApplicationVersion().toDisplayString()
|
||||
);
|
||||
@@ -49,6 +49,11 @@ void LogManager::setLoggingEnabled(bool enabled)
|
||||
}
|
||||
}
|
||||
|
||||
bool LogManager::getLoggingEnabled() const
|
||||
{
|
||||
return m_loggingEnabled;
|
||||
}
|
||||
|
||||
void LogManager::addLogger(std::shared_ptr<Logger> logger)
|
||||
{
|
||||
m_logManagerImplementation.addLogger(logger);
|
||||
|
||||
@@ -15,6 +15,7 @@ public:
|
||||
~LogManager();
|
||||
|
||||
void setLoggingEnabled(bool enabled);
|
||||
bool getLoggingEnabled() const;
|
||||
|
||||
void addLogger(std::shared_ptr<Logger> logger);
|
||||
void removeLogger(std::shared_ptr<Logger> logger);
|
||||
|
||||
Reference in New Issue
Block a user