File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -1073,11 +1073,15 @@ def _monitor_process(
10731073 set_priority (process .pid , priority )
10741074 except psutil .AccessDenied as exc :
10751075 logger .warning (
1076- "Cannot set process priority {}. Access denied." .format (exc )
1076+ "Cannot set process priority {}: {}. Access denied." .format (
1077+ priority , exc
1078+ )
10771079 )
10781080 logger .debug ("Trace:" , exc_info = True )
10791081 except Exception as exc :
1080- logger .warning ("Cannot set process priority: {}" .format (exc ))
1082+ logger .warning (
1083+ "Cannot set process priority {}: {}" .format (priority , exc )
1084+ )
10811085 logger .debug ("Trace:" , exc_info = True )
10821086 except NameError :
10831087 logger .warning (
@@ -1091,13 +1095,15 @@ def _monitor_process(
10911095 set_io_priority (process .pid , io_priority )
10921096 except psutil .AccessDenied as exc :
10931097 logger .warning (
1094- "Cannot set io priority for process {}: access denied." .format (
1095- exc
1098+ "Cannot set io priority {}: {} Access denied." .format (
1099+ io_priority , exc
10961100 )
10971101 )
10981102 logger .debug ("Trace:" , exc_info = True )
10991103 except Exception as exc :
1100- logger .warning ("Cannot set io priority: {}" .format (exc ))
1104+ logger .warning (
1105+ "Cannot set io priority {}: {}" .format (io_priority , exc )
1106+ )
11011107 logger .debug ("Trace:" , exc_info = True )
11021108 raise
11031109 except NameError :
You can’t perform that action at this time.
0 commit comments