Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
3731a996
Commit
3731a996
authored
Dec 11, 2017
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxcomp/src/Log.cpp: only create a new queue entry if we actually intend to write it out later.
Fixes: ArcticaProject/nx-libs#596
parent
7882a39a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Log.cpp
nxcomp/src/Log.cpp
+3
-3
No files found.
nxcomp/src/Log.cpp
View file @
3731a996
...
@@ -110,9 +110,9 @@ NXLog& operator<< (NXLog& out, const NXLogStamp& value)
...
@@ -110,9 +110,9 @@ NXLog& operator<< (NXLog& out, const NXLogStamp& value)
out
.
current_file
(
value
.
file
()
);
out
.
current_file
(
value
.
file
()
);
// Writing an NXLogStamp to the stream indicates the start of a new entry.
// Writing an NXLogStamp to the stream indicates the start of a new entry.
// If there's any content in the buffer
, create a new entry in the output
// If there's any content in the buffer
and we actually intend to keep that line,
// queue.
//
create a new entry in the output
queue.
if
(
out
.
synchronized
()
)
if
(
out
.
synchronized
()
&&
out
.
will_log
()
)
out
.
new_stack_entry
();
out
.
new_stack_entry
();
out
<<
out
.
stamp_to_string
(
value
);
out
<<
out
.
stamp_to_string
(
value
);
...
...
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