[X2Go-Commits] [x2goclient] 04/38: pyhoca-cli: Print debug message before exiting pyhoca-cli.

git-admin at x2go.org git-admin at x2go.org
Fri Dec 15 21:15:10 CET 2023


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goclient.

commit dd72855a78b27ede220a31988cffb004762d6b90
Author: Daniel Teichmann <daniel.teichmann at das-netzwerkteam.de>
Date:   Thu Aug 19 14:59:38 2021 +0200

    pyhoca-cli: Print debug message before exiting pyhoca-cli.
---
 pyhoca-cli | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pyhoca-cli b/pyhoca-cli
index 7dd9001a..3d02377e 100755
--- a/pyhoca-cli
+++ b/pyhoca-cli
@@ -441,9 +441,11 @@ if __name__ == '__main__':
 
     if not os.environ.get('DISPLAY'):
         logger('the display environment variable is unset, can\'t go on without a DISPLAY...', x2go.loglevel_ERROR, )
+        logger('exiting pyhoca-cli now.', x2go.loglevel_DEBUG, )
         sys.exit(1)
     elif not re.match("^.*:[0-9]+(|\.[0-9]+)$", os.environ.get('DISPLAY')):
         logger('the display environment variable\'s value is weird ({val}), can\'t go on with that...'.format(val=os.environ.get('DISPLAY')), x2go.loglevel_ERROR, )
+        logger('exiting pyhoca-cli now.', x2go.loglevel_DEBUG, )
         sys.exit(1)
     try:
 
@@ -454,6 +456,7 @@ if __name__ == '__main__':
         thisPyHocaCLI.authenticate()
         thisPyHocaCLI.MainLoop()
 
+        logger('exiting pyhoca-cli now.', x2go.loglevel_DEBUG, )
         sys.exit(0)
 
     except (KeyboardInterrupt, SystemExit) as e:

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list