Skip to content

Commit

Permalink
chore: remove unnecessary report to service team message
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Anderson <[email protected]>
  • Loading branch information
AWS-Samuel committed Dec 18, 2024
1 parent c26590d commit e246658
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/deadline_worker_agent/log_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,7 @@ def _replace_openjd_log_message(self, record: logging.LogRecord) -> None:
user=None, # User is only used for SessionLogEventSubtype.USER
)
else:
# This also should never happen. Fall back to a StringLogEvent.
record.msg += f" The Worker Agent could not locate the job and queue ID for this log originating from session {session_id}. Please report this to the service team."
# This can happen at the very beginning of a session. Fall back to a StringLogEvent.
return
record.getMessageReplaced = True
record.getMessage = MethodType(lambda self: self.msg.getMessage(), record) # type: ignore
Expand Down

0 comments on commit e246658

Please sign in to comment.