This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch 3.6.x in repository nx-libs. from 56dbc21 nxcomp/src/Log.h: make sure we don't pass NULL pointers to strstr(). new 8036f69 nxcomp/src/Log.cpp: don't confuse users with useless warning messages in case that a log line append operation was requested, but the message level has lower precedence than the current log filter. new bc5f9a2 nxcomp/src/Log.h: take a reference-type in generic has_newline() function. The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: nxcomp/src/Log.cpp | 20 ++++++++++++-------- nxcomp/src/Log.h | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch 3.6.x in repository nx-libs. commit 8036f6914ddb38cd06b27739a84b3a3667413c14 Author: Mihai Moldovan <ionic@ionic.de> Date: Wed Dec 27 20:12:26 2017 +0100 nxcomp/src/Log.cpp: don't confuse users with useless warning messages in case that a log line append operation was requested, but the message level has lower precedence than the current log filter. --- nxcomp/src/Log.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/nxcomp/src/Log.cpp b/nxcomp/src/Log.cpp index a3a7222..4a9a267 100644 --- a/nxcomp/src/Log.cpp +++ b/nxcomp/src/Log.cpp @@ -123,15 +123,19 @@ NXLog& operator<< (NXLog& out, const NXLogStamp& value) /* Appending means that the log object's internal level and the message level must match. */ if (out.current_level() == value.level()) { - /* And the buffer must of course be non-empty. */ - if (out.has_buffer()) + /* Discard, if the message is not supposed to be written out anyway. */ + if (out.will_log ()) { - out << " (cont.) "; - } - else - { - std::cerr << "WARNING: Append operation requested, but no queued data available. " - << "Internal state error!\n" << "Log line will be discarded!" << std::endl; + /* And the buffer must of course be non-empty. */ + if (out.has_buffer()) + { + out << " (cont.) "; + } + else + { + std::cerr << "WARNING: Append operation requested, but no queued data available. " + << "Internal state error!\n" << "Log line will be discarded!" << std::endl; + } } } else -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch 3.6.x in repository nx-libs. commit bc5f9a2363cb865fa1a8a1427d9320514e7d1889 Author: Mihai Moldovan <ionic@ionic.de> Date: Wed Dec 27 22:09:29 2017 +0100 nxcomp/src/Log.h: take a reference-type in generic has_newline() function. Should avoid copy-constructing objects again. --- nxcomp/src/Log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxcomp/src/Log.h b/nxcomp/src/Log.h index d0ea627..95436a5 100644 --- a/nxcomp/src/Log.h +++ b/nxcomp/src/Log.h @@ -501,7 +501,7 @@ NXLog& operator<< (NXLog& out, const NXLogStamp& value); template <typename T> -bool has_newline(T value) +bool has_newline(T &value) { return false; } -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git