From 3bdd20e140a3be3b654ffba5fe3113e9fcc30852 Mon Sep 17 00:00:00 2001 From: mike dupont Date: Sat, 14 Dec 2024 09:55:16 -0500 Subject: [PATCH] removing prints OSError: [Errno 5] Input/output error File "src/hunter/_tracer.pyx", line 45, in hunter._tracer.trace_func File "src/hunter/_predicates.pyx", line 587, in hunter._predicates.fast_call File "src/hunter/_predicates.pyx", line 360, in hunter._predicates.fast_When_call File "main.py", line 56, in process_hunter_event print("MOD", mod) OSError: [Errno 5] Input/output error (3 additional frame(s) were not displayed --- api/main.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/api/main.py b/api/main.py index e383f1ac..6ef879bf 100644 --- a/api/main.py +++ b/api/main.py @@ -44,18 +44,20 @@ def process_hunter_event(x): kind = x.kind if kind not in kind: - print("KIND", x) + logger.debug(f"new kind: {kind}") + #print("KIND", x) kind[kind] = 1 if "swarms" in mod: # hunter.CallPrinter(x) - print(x) + #print(x) + logger.debug(f"new swarms event:{kind} value:{x}") elif "uvicorn" in mod: # hunter.CallPrinter(x) # print(x) pass if mod not in seen: - print("MOD", mod) + logger.debug(f"new module: {mod}") seen[mod] = 1 else: seen[mod] = seen[mod]+11 @@ -898,7 +900,8 @@ app = create_app() if __name__ == '__main__': # freeze_support() - print("yes in main") + #print("yes in main") + logger.debug(f"in main") # Configure uvicorn logging logger.info("API Starting") @@ -911,6 +914,7 @@ if __name__ == '__main__': # reload=True, ) else: - print("not in main") + #print("not in main") + logger.debug(f"not in main") pass