-
Notifications
You must be signed in to change notification settings - Fork 71
Add channel log for error with line attachments #711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
handlers/line/handler.go
Outdated
@@ -317,6 +317,8 @@ func (h *handler) Send(ctx context.Context, msg courier.MsgOut, res *courier.Sen | |||
|
|||
if err == nil { | |||
jsonMsgs = append(jsonMsgs, string(jsonMsg)) | |||
} else { | |||
clog.Error(courier.NewChannelError("", "", err.Error())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line will help see why the attachments was not send
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if marshaling those things is creating an error.. .then just return that err (return err
) and we'll fix it... but I'm not convinced this is where the problem is
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #711 +/- ##
==========================================
- Coverage 74.24% 74.22% -0.02%
==========================================
Files 110 110
Lines 13325 13327 +2
==========================================
- Hits 9893 9892 -1
- Misses 2718 2720 +2
- Partials 714 715 +1 ☔ View full report in Codecov by Sentry. |
handlers/line/handler.go
Outdated
@@ -317,6 +317,8 @@ func (h *handler) Send(ctx context.Context, msg courier.MsgOut, res *courier.Sen | |||
|
|||
if err == nil { | |||
jsonMsgs = append(jsonMsgs, string(jsonMsg)) | |||
} else { | |||
clog.Error(courier.NewChannelError("", "", err.Error())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if marshaling those things is creating an error.. .then just return that err (return err
) and we'll fix it... but I'm not convinced this is where the problem is
51f9ea3
to
59765cb
Compare
No description provided.