Skip to content

Conversation

@dgw
Copy link
Member

@dgw dgw commented Jun 15, 2023

If a Trigger causes an error in a plugin, we already know when the error happened because the logger call is timestamped. The error as reported to IRC also is timestamped, and datetime.now() is not useful data.

(It is, however, confusing data. Considered replacing it with trigger.time but decided against that, since server-time means those could be in the past/future, making the timestamp embedded in the log message even more confusing instead of less.)

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

@dgw dgw added this to the 8.0.0 milestone Jun 15, 2023
@dgw dgw requested a review from a team June 15, 2023 05:02
If a Trigger causes an error in a plugin, we already know when the error
happened because the logger call is timestamped. The error as reported
to IRC also is timestamped, and `datetime.now()` is not useful data.

(It is, however, confusing data. Considered replacing it with
`trigger.time` but decided against that, since `server-time` means those
could be in the past/future, making the timestamp embedded in the log
message even *more* confusing instead of less.)
@dgw dgw force-pushed the trigger-error-no-dup-timestamp branch from 23e5faf to ff64350 Compare June 15, 2023 05:05
Copy link
Contributor

@SnoopJ SnoopJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, emitting this data on IRC is mostly noise, and we're not losing anything since it's in the logs anyway.

@dgw dgw merged commit 7bcb942 into master Jun 20, 2023
@dgw dgw deleted the trigger-error-no-dup-timestamp branch June 20, 2023 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants