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 log-hook. #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add log-hook. #11

wants to merge 1 commit into from

Conversation

kenrestivo
Copy link

Add a log-hook for logging or otherwise tracking tries as they are in progress.

@kenrestivo
Copy link
Author

I just realized due to the precise way bruce handles true/false return values, could hack around this by using (abusing?) error-hook, i.e.

{:error-hook #(log/debug (.getMessage %)}

It gets a little complected if I have to actually do error-checking in the hook too, but it's manageable, so I don't really need this mod. But it'd be nice.

@joegallo
Copy link
Owner

Yeah, I've used that trick before. I rather like your solution, though, so I'll get this merged and released soonish.

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