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 a dry-run option to handlers #10

Open
mfrasca opened this issue Apr 21, 2013 · 0 comments
Open

add a dry-run option to handlers #10

mfrasca opened this issue Apr 21, 2013 · 0 comments

Comments

@mfrasca
Copy link
Contributor

mfrasca commented Apr 21, 2013

some handlers (specifically the sentryHandler) need check or load packages in order to run. or they might want to test for the presence of all needed parameters. it would be nice to have a dry-run option that informs the handler action not to do anything except check the environment.

So you would be able to follow the workflow:

  • create the handler
  • ask it whether it can function
  • if yes, continue attaching it to a logger
  • if no, take alternative measures

without this dry-run option, you are here:

  • create the handler
  • attach it to a logger
  • when the handler is activated, fall in some error situation if things are not in order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant