Skip to content

Commit 17cd3e0

Browse files
ponyisiBenGalewsky
authored andcommitted
Eliminate three unncecessary log lines per worker
1 parent 8facb19 commit 17cd3e0

File tree

1 file changed

+1
-2
lines changed
  • transformer_sidecar/src/transformer_sidecar/transformer_stats

1 file changed

+1
-2
lines changed

transformer_sidecar/src/transformer_sidecar/transformer_stats/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def __init__(self, log_path: Optional[Path] = None):
3535
with open(log_path, encoding="utf8", errors='ignore') as log:
3636
self.log_body = log.read()
3737
else:
38-
print("File does not exist:", log_path)
39-
self.log_body = ""
38+
self.log_body = f"File does not exist: {log_path}"
4039
self.total_events = 0
4140
self.file_size = 0
4241
self.error_info = "Unable to determine error cause. Please consult log files"

0 commit comments

Comments
 (0)