Entropy/Socket Interface:

- save exceptions into the log file too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2012 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-05-28 08:06:05 +00:00
parent abb2bc6fb9
commit f616701f9d
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -12425,6 +12425,7 @@ class SocketHostInterface:
except Exception, e:
# write to self.HostInterface.socketLog
self.entropyTools.printTraceback()
self.entropyTools.printTraceback(f = self.HostInterface.socketLog)
# store error
self.HostInterface.updateProgress(
'[from: %s] command error: %s, type: %s' % (
@@ -15533,6 +15534,7 @@ class RepositorySocketServerInterface(SocketHostInterface):
)
except:
self.entropyTools.printTraceback()
self.entropyTools.printTraceback(f = self.HostInterface.socketLog)
return None
result[idpackage] = mydata.copy()
+2 -2
View File
@@ -99,9 +99,9 @@ class parallelTask(threading.Thread):
else:
self.function()
def printTraceback():
def printTraceback(f = None):
import traceback
traceback.print_exc()
traceback.print_exc(file = f)
def printException(returndata = False):
import traceback