Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
fd170b0f
Commit
fd170b0f
authored
Nov 24, 2017
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
catch(...) exceptions, report it, and rethrow
parent
587b5282
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
async_log_helper.h
include/spdlog/details/async_log_helper.h
+7
-1
async_logger_impl.h
include/spdlog/details/async_logger_impl.h
+7
-1
logger_impl.h
include/spdlog/details/logger_impl.h
+4
-0
No files found.
include/spdlog/details/async_log_helper.h
View file @
fd170b0f
...
...
@@ -279,7 +279,13 @@ inline void spdlog::details::async_log_helper::worker_loop()
catch
(
const
std
::
exception
&
ex
)
{
_err_handler
(
ex
.
what
());
}
}
catch
(...)
{
_err_handler
(
"Unknown exeption in worker loop. Terminating worker loop"
);
active
=
false
;
}
}
if
(
_worker_teardown_cb
)
_worker_teardown_cb
();
...
...
include/spdlog/details/async_logger_impl.h
View file @
fd170b0f
...
...
@@ -97,5 +97,11 @@ inline void spdlog::async_logger::_sink_it(details::log_msg& msg)
catch
(
const
std
::
exception
&
ex
)
{
_err_handler
(
ex
.
what
());
}
}
catch
(...)
{
_err_handler
(
"Unknown exception in logger "
+
_name
);
throw
;
}
}
include/spdlog/details/logger_impl.h
View file @
fd170b0f
...
...
@@ -76,6 +76,10 @@ inline void spdlog::logger::log(level::level_enum lvl, const char* fmt, const Ar
catch
(
const
std
::
exception
&
ex
)
{
_err_handler
(
ex
.
what
());
}
catch
(...)
{
_err_handler
(
"Unknown exception in logger "
+
_name
);
throw
;
}
}
...
...
Write
Preview
Markdown
is supported
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