Skip to content

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

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

norkans7
Copy link
Contributor

@norkans7 norkans7 commented Mar 7, 2024

No description provided.

@@ -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()))
Copy link
Contributor Author

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

Copy link
Member

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

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 74.22%. Comparing base (eee6313) to head (59765cb).

Files Patch % Lines
handlers/line/handler.go 0.00% 1 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

@@ -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()))
Copy link
Member

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

@norkans7 norkans7 force-pushed the line-attachnment-err-log branch from 51f9ea3 to 59765cb Compare March 7, 2024 14:51
@norkans7 norkans7 requested a review from rowanseymour March 7, 2024 14:51
@rowanseymour rowanseymour merged commit 66ae5b7 into main Mar 7, 2024
5 of 7 checks passed
@rowanseymour rowanseymour deleted the line-attachnment-err-log branch March 7, 2024 15:03
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants