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
98b9cd38
Commit
98b9cd38
authored
6 years ago
by
puasonych
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update step logger
parent
877a6184
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
step_file_sink.h
include/spdlog/contrib/sinks/step_file_sink.h
+7
-3
No files found.
include/spdlog/contrib/sinks/step_file_sink.h
View file @
98b9cd38
...
@@ -128,11 +128,15 @@ protected:
...
@@ -128,11 +128,15 @@ protected:
std
::
tie
(
new_filename
,
std
::
ignore
)
=
FileNameCalc
::
calc_filename
(
_base_filename
,
_tmp_ext
);
std
::
tie
(
new_filename
,
std
::
ignore
)
=
FileNameCalc
::
calc_filename
(
_base_filename
,
_tmp_ext
);
bool
change_occured
=
!
details
::
file_helper
::
file_exists
(
new_filename
);
bool
change_occured
=
!
details
::
file_helper
::
file_exists
(
new_filename
);
if
(
change_occured
)
close_current_file
();
if
(
change_occured
)
{
close_current_file
();
_current_filename
=
std
::
move
(
new_filename
);
_current_filename
=
std
::
move
(
new_filename
);
_file_helper
.
open
(
_current_filename
);
}
_file_helper
.
open
(
_current_filename
);
_tp
=
_next_tp
();
_tp
=
_next_tp
();
if
(
change_occured
)
if
(
change_occured
)
...
...
This diff is collapsed.
Click to expand it.
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