write logs for inference and loader to file

This commit is contained in:
Alex Bezdieniezhnykh
2025-06-14 16:08:32 +03:00
parent 8aa2f563a4
commit 6f297c4ebf
30 changed files with 218 additions and 140 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ cdef class CommandProcessor:
continue
except Exception as e:
traceback.print_exc()
print('EXIT!')
constants.log('EXIT!')
cdef on_command(self, RemoteCommand command):
try:
@@ -54,7 +54,7 @@ cdef class CommandProcessor:
else:
pass
except Exception as e:
print(f"Error handling client: {e}")
constants.logerror(f"Error handling client: {e}")
cdef on_annotation(self, RemoteCommand cmd, Annotation annotation):
cdef RemoteCommand response = RemoteCommand(CommandType.INFERENCE_DATA, annotation.serialize())