Skip to content

Commit

Permalink
better logging to figure out what the 'exe' actually is, because the …
Browse files Browse the repository at this point in the history
…root child still isn't executing
  • Loading branch information
maltfield committed Oct 16, 2022
1 parent 42fe846 commit d5702c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@
datefmt = '%H:%M:%S',
level = logging.DEBUG
)
logging.debug("===============================================================================")
logging.info( "INFO: Writing to log file '" +str(log_file_path)+ "'" )
msg = "==============================================================================="
print( msg ); logger.info( msg )
msg = "INFO: Writing to log file '" +str(log_file_path)+ "'"
print( msg ); logger.info( msg )

logging.debug( 'BUSKILL_VERSION|' +str(BUSKILL_VERSION)+ '|' )
logging.debug( 'os.environ|' +str(os.environ)+ '|' )
logging.debug( 'sys.argv|' +str(sys.argv)+ '|' )
Expand Down
2 changes: 1 addition & 1 deletion src/packages/buskill/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ def spawn_root_child(self):
self.root_child = dict()
self.root_child['io'] = ctypes.c_void_p()

print( "running root_child (" +str(root_child_path)+ ")" )
print( "running root_child (" +str(exe)+ ")" )
err = sec.AuthorizationExecuteWithPrivileges(
auth,
exe[0].encode('utf8'),
Expand Down

0 comments on commit d5702c0

Please sign in to comment.