Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
partons
core
elementary-utils
Commits
6e4a5a4e
Commit
6e4a5a4e
authored
Nov 23, 2016
by
Bryan Berthou
Browse files
refs#16
In ElementaryUtils (trunk) : - Correct what() implementation.
parent
a68c0796
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ElementaryUtils/logger/CustomException.cpp
View file @
6e4a5a4e
...
...
@@ -10,6 +10,8 @@ CustomException::CustomException(const std::string &className,
std
::
runtime_error
(
m_errorMsg
),
m_className
(
className
),
m_funcName
(
funcName
),
m_errorMsg
(
errorMsg
),
m_finalExceptionMsg
(
StringUtils
::
EMPTY
)
{
m_finalExceptionMsg
=
Formatter
()
<<
"("
<<
m_className
<<
"::"
<<
m_funcName
<<
") "
<<
m_errorMsg
;
}
CustomException
::~
CustomException
()
throw
()
{
...
...
@@ -35,8 +37,6 @@ CustomException& CustomException::operator =(
}
const
char
*
CustomException
::
what
()
const
throw
()
{
m_finalExceptionMsg
=
Formatter
()
<<
"("
<<
m_className
<<
"::"
<<
m_funcName
<<
") "
<<
m_errorMsg
;
return
m_finalExceptionMsg
.
c_str
();
}
...
...
src/ElementaryUtils/logger/LoggerManager.cpp
View file @
6e4a5a4e
...
...
@@ -146,6 +146,8 @@ void LoggerManager::parseConfigurationFile(const std::string &filePath) {
void
LoggerManager
::
close
()
{
sf
::
Lock
lock
(
m_mutex
);
// mutex.lock()
debug
(
"LoggerManager"
,
__func__
,
"Closed"
);
m_active
=
false
;
}
// mutex.unlock()
...
...
@@ -169,9 +171,6 @@ void LoggerManager::update() {
Formatter
()
<<
"Cannot open log file = "
<<
m_outputFilePath
<<
"
\n
"
<<
"LoggerManager terminated !"
);
}
std
::
cout
<<
"[LoggerManager] terminated ..."
<<
std
::
endl
;
}
bool
LoggerManager
::
isLoggable
(
LoggerMessage
loggerMessage
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment