This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository x2goserver. from 81fb801 x2goserver/sbin/x2gocleansessions: add timestamp to debug output. new 91c41f1 x2goserver/sbin/x2gocleansessions: only output status refreshing debug message if the old and new states actually differ. new 47de61e x2goserver/sbin/x2gocleansessions: also (correctly) log to syslog if started with --debug parameter. 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: debian/changelog | 4 ++++ x2goserver/sbin/x2gocleansessions | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) -- Alioth's /srv/git/code.x2go.org/x2goserver.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2goserver. commit 91c41f1db4ed77335281dc0c6efa7999c4b4fb6f Author: Mihai Moldovan <ionic@ionic.de> Date: Wed Jun 24 16:56:47 2015 +0200 x2goserver/sbin/x2gocleansessions: only output status refreshing debug message if the old and new states actually differ. Prevents log spam. Cherry-picked from release/4.0.1.x branch. --- debian/changelog | 2 ++ x2goserver/sbin/x2gocleansessions | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 3190590..4592953 100644 --- a/debian/changelog +++ b/debian/changelog @@ -230,6 +230,8 @@ x2goserver (4.0.1.20-0x2go1) UNRELEASED; urgency=low hope this doesn't bite back some time or later... - x2goserver/sbin/x2gocleansessions: add debugging output to show the state change when updating the cached state result. + - x2goserver/sbin/x2gocleansessions: only output status refreshing debug + message if the old and new states actually differ. Prevents log spam. * x2goserver.spec: - Add sudo and logcheck as BuildRequires and Requires. Don't own directories that are owned by sudo and logcheck. Logcheck is not diff --git a/x2goserver/sbin/x2gocleansessions b/x2goserver/sbin/x2gocleansessions index 91dde53..99c9598 100755 --- a/x2goserver/sbin/x2gocleansessions +++ b/x2goserver/sbin/x2gocleansessions @@ -190,7 +190,9 @@ elsif ($pid == 0 ) # Update current status once per session. Avoids race conditions. my $current_status = system_capture_stdout_output ("$x2go_lib_path/x2gogetstatus", "@sinfo[1]"); if (length ($current_status)) { - log_message ('debug', "@sinfo[1]: updating session status from '@sinfo[4]' to '$current_status'."); + if (@sinfo[4] ne $current_status) { + log_message ('debug', "@sinfo[1]: updating session status from '@sinfo[4]' to '$current_status'."); + } @sinfo[4] = $current_status; } else { -- Alioth's /srv/git/code.x2go.org/x2goserver.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2goserver. commit 47de61e4f3a67992568e93dfe233ff904d54c8b7 Author: Mihai Moldovan <ionic@ionic.de> Date: Wed Jun 24 17:14:57 2015 +0200 x2goserver/sbin/x2gocleansessions: also (correctly) log to syslog if started with --debug parameter. --- debian/changelog | 2 ++ x2goserver/sbin/x2gocleansessions | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 4592953..f66b406 100644 --- a/debian/changelog +++ b/debian/changelog @@ -150,6 +150,8 @@ x2goserver (4.1.0.0-0x2go1.1) UNRELEASED; urgency=low [ Mihai Moldovan ] * New upstream version (4.1.0.0): - x2goserver/sbin/x2gocleansessions: add timestamp to debug output. + - x2goserver/sbin/x2gocleansessions: also (correctly) log to syslog if + started with --debug parameter. * x2goserver.spec: - Only create session DB in x2goserver's post install script. Do use proper Requires(post) statements to make sure perl-X2Go-Server-DB and diff --git a/x2goserver/sbin/x2gocleansessions b/x2goserver/sbin/x2gocleansessions index 99c9598..baff6f9 100755 --- a/x2goserver/sbin/x2gocleansessions +++ b/x2goserver/sbin/x2gocleansessions @@ -44,7 +44,7 @@ GetOptions( 'debug' => \$debug ); openlog($0,'cons,pid','user'); if ($debug) { - setlogmask( LOG_DEBUG ); + setlogmask( LOG_UPTO (LOG_DEBUG) ); } else { -- Alioth's /srv/git/code.x2go.org/x2goserver.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git