Skip to content

Commit

Permalink
Commented out excessive logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkoumis committed Mar 11, 2024
1 parent 7a06dea commit 537f369
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions analyzer/windows/lib/api/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,15 @@ def exit_code(self):
self.open()

exit_code = c_ulong(0)
log.debug("getting exit code for %s", self)
ok = KERNEL32.GetExitCodeProcess(self.h_process, byref(exit_code))
if not ok:
log.debug("failed getting exit code for %s", self)
return None
log.debug("%s exit code is %d", self, exit_code.value)
if exit_code.value == STILL_ACTIVE:
log.debug("%s is still active", self)
# Uncommenting the lines below will spam the analyzer.log file.
# if exit_code.value == STILL_ACTIVE:
# log.debug("%s is STILL_ACTIVE", self)
# else:
# log.debug("%s exit code is %d", self, exit_code.value)
return exit_code.value

def get_filepath(self):
Expand Down

0 comments on commit 537f369

Please sign in to comment.