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

add debug logs #7

Merged
merged 1 commit into from
Oct 18, 2024
Merged

add debug logs #7

merged 1 commit into from
Oct 18, 2024

Conversation

fujiwara
Copy link
Contributor

@fujiwara fujiwara commented Oct 18, 2024

This pull request includes various logging enhancements and minor refactoring changes across multiple files. The most important changes include adding debug and warning logs, introducing a new debug variable, and replacing deprecated ioutil package functions.

Logging Enhancements:

  • msgr.go: Added warning and debug logs in msgrPostHandler to log invalid requests and successful posts.
  • nopaste.go: Added a warning log for empty text in saveContent.
  • slack.go: Added debug logs in PostNopaste and PostMsgr methods to log message details before posting to Slack. [1] [2]

Code Refactoring:

  • nopaste.go: Introduced a new Debug variable to enable or disable debug logging.
  • slack.go: Replaced deprecated ioutil.ReadAll with io.ReadAll in Post method of SlackAgent.

@fujiwara fujiwara merged commit 4ce262d into master Oct 18, 2024
4 checks passed
@fujiwara fujiwara deleted the debug-log branch October 18, 2024 05:43
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.

1 participant