[X2Go-Commits] [x2goclient] 16/94: * fixing name tag whe logging (to distinguish X2goClient instance logging and PyHocaCLI class logging)

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


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

x2go pushed a commit to annotated tag 0.1.4.0
in repository x2goclient.

commit a99ff622c1434a570e5334d416d3c390ae6be0f0
Author: mike <mike at cdb5e8f1-f799-4276-8919-bce57fd91830>
Date:   Thu Nov 11 09:02:25 2010 +0000

    * fixing name tag whe logging (to distinguish X2goClient instance logging
      and PyHocaCLI class logging)
    
    
    git-svn-id: https://svn.das-netzwerkteam.de/x2go/pyhoca-cli/trunk@50 cdb5e8f1-f799-4276-8919-bce57fd91830
---
 pyhoca/cli/frontend.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py
index e19cda89..9dbaa938 100644
--- a/pyhoca/cli/frontend.py
+++ b/pyhoca/cli/frontend.py
@@ -22,7 +22,9 @@
 #    2010 Dick Kniep <dick.kniep at lindix.nl>
 #    2010 Jörg Sawatzki <joerg.sawatzki at web.de>
 
-import sys, os
+import sys
+import os
+import copy
 import time
 import getpass
 import x2go
@@ -190,7 +192,7 @@ class PyHocaCLI(x2go.X2goClient):
         if logger is None:
             logger = x2go.X2goLogger(tag='PyHocaCLI')
         else:
-            self.logger = logger
+            self.logger = copy.deepcopy(logger)
             self.logger.tag = 'PyHocaCLI'
 
         # initialize the X2goClient context and start the connection to the X2go server

--
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