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

Improve logs #2299

Merged
merged 3 commits into from
Sep 24, 2018
Merged

Improve logs #2299

merged 3 commits into from
Sep 24, 2018

Conversation

svagner
Copy link
Contributor

@svagner svagner commented Sep 4, 2018

problem

Sometimes people would complain that notifications about close/ack were not delivered to them
it seems that it's not possible to easily debug that now with current state of logs.

There is no log entries about successfull sending acks and closes. Only log failures (e.g. 400 response)

  • notifications option 'print = true' also seems to not do anything for action notifications (even for failed notifications that are logged)
  • logs don't allow you to understand if 'Send notifications' checkbox was on or off

goal

  • log successful actions (similar to how it logs alert notifications)
  • print new logs according to 'notification' settings
  • improve error log format - write extra data about notification that has delivery problem
  • log actions if there wasn't set checkbox notification

changes:

  • add logging if there was action without notification
  • add logging for any actions/alerts
  • add extra felds to log messages

Stan Putrya added 2 commits September 4, 2018 14:39
- add logging if there was action without notification
- add logging for any actions/alerts
- add extra felds to log message
@stepashka
Copy link

Hey @kylebrandt, @captncraig!
Any objections to this change? Is there something else we need to implement before this gets merged?
Thanks,
Anna

cmd/bosun/conf/notify.go Outdated Show resolved Hide resolved
cmd/bosun/web/web.go Outdated Show resolved Hide resolved
@svagner
Copy link
Contributor Author

svagner commented Sep 22, 2018

Hi @kylebrandt ! Thanks for your comments. I've pushed changes. Could you please review again? Thanks!

@kylebrandt kylebrandt merged commit 95589fb into bosun-monitor:master Sep 24, 2018
@pradeepbbl pradeepbbl deleted the improve_logs branch October 3, 2018 11:28
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.

3 participants