Commit ddfb6ca
committed
fix: log edited comment events at debug level instead of error
Edited or deleted issue comments on GitHub trigger a webhook that
reaches processEvent(), which returned an error for any non-"created"
action. That error propagated up to sinker and was logged as Errorf,
producing scary log entries for a normal, harmless event.
Replace the error return with a debug log and nil,nil return so these
events are silently skipped, matching the existing skip pattern used
elsewhere in the file.
Signed-off-by: majiayu000 <1835304752@qq.com>1 parent 92a3273 commit ddfb6ca
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
| 358 | + | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
749 | | - | |
| 748 | + | |
750 | 749 | | |
751 | 750 | | |
752 | 751 | | |
| |||
0 commit comments