[X2Go-Commits] [x2goclient] 04/05: Add --quiet option to disable any kind of log output.
git-admin at x2go.org
git-admin at x2go.org
Fri Dec 15 21:05:04 CET 2023
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to annotated tag 0.1.4.1
in repository x2goclient.
commit 0ec13f5a3e0e46660f19cc041288e72f8e27e3e5
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Jul 5 21:49:39 2011 +0200
Add --quiet option to disable any kind of log output.
---
debian/changelog | 1 +
man/man1/pyhoca-cli.1 | 3 +++
pyhoca-cli | 5 +++++
3 files changed, 9 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index fe2aae90..97c78d93 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ pyhoca-cli (0.1.4.1-0~x2go1) UNRELEASED; urgency=low
* New upstream version (0.1.4.1):
- Fix for Ctrl-C comment when sharing a desktop.
+ - Add --quiet option to disable any kind of log output.
-- Mike Gabriel <mike.gabriel at das-netzwerkteam.de> Tue, 05 Jul 2011 21:22:32 +0200
diff --git a/man/man1/pyhoca-cli.1 b/man/man1/pyhoca-cli.1
index ef69c0f6..7fa18a02 100644
--- a/man/man1/pyhoca-cli.1
+++ b/man/man1/pyhoca-cli.1
@@ -43,6 +43,9 @@ Display a help with all available command line options and exit.
\*(T<\fB\-V, \-\-version\fR\*(T>
Output version information and exit.
.TP
+\*(T<\fB\-d, \-\-quiet\fR\*(T>
+No output to stdout at all!
+.TP
\*(T<\fB\-d, \-\-debug\fR\*(T>
Enable debugging output.
.TP
diff --git a/pyhoca-cli b/pyhoca-cli
index 9838a984..34fb2977 100755
--- a/pyhoca-cli
+++ b/pyhoca-cli
@@ -103,6 +103,7 @@ action_options = [
# debug options...
debug_options = [
{'args':['-d','--debug'], 'default': False, 'action': 'store_true', 'help': 'enable application debugging code', },
+ {'args':['--quiet'], 'default': False, 'action': 'store_true', 'help': 'disable any kind of log output', },
{'args':['--libdebug'], 'default': False, 'action': 'store_true', 'help': 'enable debugging code of the underlying Python X2go module', },
{'args':['--libdebug-sftpxfer'], 'default': False, 'action': 'store_true', 'help': 'enable debugging code of Python X2go\'s sFTP server code (very verbose, and even promiscuous)', },
{'args':['-V', '--version'], 'default': False, 'action': 'store_true', 'help': 'print version number and exit', },
@@ -194,6 +195,10 @@ Possible values for the --pack NX option are:
if a.libdebug:
liblogger.set_loglevel_debug()
+ if a.quiet:
+ logger.set_loglevel_quiet()
+ liblogger.set_loglevel_quiet()
+
if a.libdebug_sftpxfer:
liblogger.enable_debug_sftpxfer()
--
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