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
755ce0a0
Commit
755ce0a0
authored
Aug 26, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated async_logger flush
parent
79334ca5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
async_bench.cpp
bench/async_bench.cpp
+0
-1
async_logger-inl.h
include/spdlog/async_logger-inl.h
+8
-1
No files found.
bench/async_bench.cpp
View file @
755ce0a0
...
@@ -141,7 +141,6 @@ int main(int argc, char *argv[])
...
@@ -141,7 +141,6 @@ int main(int argc, char *argv[])
perror
(
"Last error"
);
perror
(
"Last error"
);
return
1
;
return
1
;
}
}
return
0
;
return
0
;
}
}
...
...
include/spdlog/async_logger-inl.h
View file @
755ce0a0
...
@@ -75,6 +75,13 @@ SPDLOG_INLINE void spdlog::async_logger::backend_sink_it_(const details::log_msg
...
@@ -75,6 +75,13 @@ SPDLOG_INLINE void spdlog::async_logger::backend_sink_it_(const details::log_msg
SPDLOG_INLINE
void
spdlog
::
async_logger
::
backend_flush_
()
SPDLOG_INLINE
void
spdlog
::
async_logger
::
backend_flush_
()
{
{
spdlog
::
logger
::
flush_
();
for
(
auto
&
sink
:
sinks_
)
{
SPDLOG_TRY
{
sink
->
flush
();
}
SPDLOG_LOGGER_CATCH
()
}
}
}
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