Skip to content
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

231221 remove error logging #37

Merged
merged 3 commits into from
Dec 28, 2023
Merged

231221 remove error logging #37

merged 3 commits into from
Dec 28, 2023

Conversation

amerharb
Copy link
Collaborator

Remove error logging
related to issue: #32

@amerharb amerharb self-assigned this Dec 21, 2023
error: err,
info: () => {},
debug: debug,
error: () => {},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

a bit not sure about this if it will will mute github package when there is an error

Copy link
Member

Choose a reason for hiding this comment

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

I think error handling is not a matter of logging so it should be handled elsewhere altogether IMO.

@@ -11,18 +12,17 @@ export async function GET() {
const msgAdapter = MessageAdapterFactory.createAdapter(config);
const messages = await msgAdapter.getMessages();

// TODO: change data instruction to be a map of key to value, instead of object
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

remove it cuz the current format looks ok, and I can't remember why I add this TODO.

@amerharb amerharb force-pushed the 231221-remove-error-loggin branch from f800a82 to 77cbdd0 Compare December 21, 2023 16:17
@amerharb amerharb force-pushed the 231221-remove-error-loggin branch from 77cbdd0 to 741954e Compare December 21, 2023 20:22
Base automatically changed from 231220-load-web-page-faster to main December 28, 2023 10:41
Copy link
Member

@richardolsson richardolsson left a comment

Choose a reason for hiding this comment

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

This looks good!

Doess this fully resolve issue #32 or is there some logging remaining elsewhere?

error: err,
info: () => {},
debug: debug,
error: () => {},
Copy link
Member

Choose a reason for hiding this comment

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

I think error handling is not a matter of logging so it should be handled elsewhere altogether IMO.

@richardolsson
Copy link
Member

I notice this PR is still in draft mode. Is that intentional?

@amerharb amerharb marked this pull request as ready for review December 28, 2023 10:50
@amerharb amerharb merged commit 8a02ddd into main Dec 28, 2023
2 checks passed
@amerharb amerharb deleted the 231221-remove-error-loggin branch December 28, 2023 10:50
@amerharb
Copy link
Collaborator Author

I notice this PR is still in draft mode. Is that intentional?
it was intentional since I have a question muting github library error
I merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants