@@ -691,7 +691,7 @@ def analysis_loop(self, aux_modules):
691
691
try :
692
692
Process (pid = pid ).upload_memdump ()
693
693
except Exception as e :
694
- log .error ( e , exc_info = True )
694
+ log .exception ( e )
695
695
log .info ("Process with pid %s appears to have terminated" , pid )
696
696
if pid in self .process_list .pids :
697
697
self .process_list .remove_pid (pid )
@@ -915,7 +915,7 @@ def dump_file(self, filepath, metadata="", pids="", ppids="", category="files"):
915
915
except (IOError , socket .error ) as e :
916
916
log .error ('Unable to upload dropped file at path "%s": %s' , filepath , e )
917
917
except Exception as e :
918
- log .error ( e , exc_info = True )
918
+ log .exception ( e )
919
919
920
920
def delete_file (self , filepath , pid = None ):
921
921
"""A file is about to removed and thus should be dumped right away."""
@@ -1508,8 +1508,7 @@ def dispatch(self, data):
1508
1508
try :
1509
1509
response = fn (arguments )
1510
1510
except Exception as e :
1511
- log .error (e , exc_info = True )
1512
- log .exception ("Pipe command handler exception occurred (command %s args %s)" , command , arguments )
1511
+ log .exception ("Pipe command handler exception occurred (command %s args %s). %s" , command , arguments , str (e ))
1513
1512
1514
1513
return response
1515
1514
@@ -1536,7 +1535,7 @@ def dispatch(self, data):
1536
1535
1537
1536
# When user set wrong package, Example: Emotet package when submit doc, package only is for EXE!
1538
1537
except CuckooError :
1539
- log .info ("You probably submitted the job with wrong package" , exc_info = True )
1538
+ log .exception ("You probably submitted the job with wrong package" )
1540
1539
data ["status" ] = "exception"
1541
1540
data ["description" ] = "You probably submitted the job with wrong package"
1542
1541
try :
0 commit comments