[X2Go-Commits] [x2gokdriveclient] 01/01: support for --debug command line argument.

git-admin at x2go.org git-admin at x2go.org
Fri Sep 17 13:51:18 CEST 2021


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

x2go pushed a commit to branch master
in repository x2gokdriveclient.

commit 275084da8297a15d76f4cb8fddeab4eade2f3512
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date:   Fri Sep 17 13:51:12 2021 +0200

    support for --debug command line argument.
---
 client.cpp       | 11 +++++++++++
 debian/changelog |  1 +
 2 files changed, 12 insertions(+)

diff --git a/client.cpp b/client.cpp
index f04d4ac..9df71f9 100644
--- a/client.cpp
+++ b/client.cpp
@@ -34,6 +34,9 @@
 #include <QBuffer>
 #include <QMenuBar>
 #include <QToolBar>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
+#include <QLoggingCategory>
+#endif
 #include "menuframe.h"
 
 #include <QHBoxLayout>
@@ -511,6 +514,14 @@ void Client::connectToServer()
     {
         qDebug()<<args[i];
 
+        if(args[i]=="--debug")
+        {
+#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
+            QLoggingCategory::setFilterRules("default.debug=true");
+#endif
+            qDebug()<<"Running in debug mode";
+            continue;
+        }
         if(args[i]=="--connect")
         {
             host=args[++i];
diff --git a/debian/changelog b/debian/changelog
index ad8c176..4b56a53 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -32,5 +32,6 @@ x2gokdriveclient (0.0.0.1-0x2go1) UNRELEASED; urgency=medium
     - include xcb/xproto.h header
     - use zlib library to decompress compressed strings instead of built in QT function.
     - reiniting of frame and cursors caches if cache is corrupted.
+    - support for --debug command line argument.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Tue, 04 Jun 2019 11:10:43 +0200

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


More information about the x2go-commits mailing list