From 537f369161d8273aec81863aa5f28fd3afbc27a1 Mon Sep 17 00:00:00 2001 From: Robin Koumis Date: Mon, 11 Mar 2024 14:02:03 -0400 Subject: [PATCH] Commented out excessive logging. --- analyzer/windows/lib/api/process.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/analyzer/windows/lib/api/process.py b/analyzer/windows/lib/api/process.py index d23a620a40e3..b71fd9be18da 100644 --- a/analyzer/windows/lib/api/process.py +++ b/analyzer/windows/lib/api/process.py @@ -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):