diff options
author | Mihai Moldovan <ionic@ionic.de> | 2017-12-11 13:38:59 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2017-12-11 13:38:59 +0100 |
commit | 3731a996dce9adf1c6f398cc1cdec2909588a7ee (patch) | |
tree | f13191f035f6afe2cac8e9adb65f49a1d8e1d57f /nxcomp | |
parent | 7882a39ad235c7d09f9ec9994c6ced62897ac1c0 (diff) | |
download | nx-libs-3731a996dce9adf1c6f398cc1cdec2909588a7ee.tar.gz nx-libs-3731a996dce9adf1c6f398cc1cdec2909588a7ee.tar.bz2 nx-libs-3731a996dce9adf1c6f398cc1cdec2909588a7ee.zip |
nxcomp/src/Log.cpp: only create a new queue entry if we actually intend to write it out later.
Fixes: ArcticaProject/nx-libs#596
Diffstat (limited to 'nxcomp')
-rw-r--r-- | nxcomp/src/Log.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nxcomp/src/Log.cpp b/nxcomp/src/Log.cpp index 951c10a04..24f660507 100644 --- a/nxcomp/src/Log.cpp +++ b/nxcomp/src/Log.cpp @@ -110,9 +110,9 @@ NXLog& operator<< (NXLog& out, const NXLogStamp& value) out.current_file( value.file() ); // 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 - // queue. - if ( out.synchronized() ) + // If there's any content in the buffer and we actually intend to keep that line, + // create a new entry in the output queue. + if ( out.synchronized() && out.will_log() ) out.new_stack_entry(); out << out.stamp_to_string(value); |