Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

add config option to disable location section #106

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

Emilgardis
Copy link
Contributor

@Emilgardis Emilgardis commented Mar 17, 2022

resolves #105

I'm not sure how to handle the panic hook.
I think it makes sense to always display the location even if we've set the config to false.

If this is unexpected (I think it isn't), it should be possible to implement by adding a field to DefaultPanicMessage

Copy link
Collaborator

@yaahc yaahc left a comment

Choose a reason for hiding this comment

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

looks great, just need a few more cfgs. Also, and this one isn't mandatory, but if you wanted to add an example to the doc comment for the method including the output and or a test that would be greatly appreciated.

@Emilgardis Emilgardis force-pushed the display_location_section branch 2 times, most recently from ce30a66 to 3b89e70 Compare March 17, 2022 18:49
@Emilgardis
Copy link
Contributor Author

hmm, that failure is annoying. Can fix with a cfg on the test file I think

@Emilgardis Emilgardis force-pushed the display_location_section branch 2 times, most recently from 15a580b to 6fdb4d5 Compare March 17, 2022 21:23
@Emilgardis Emilgardis force-pushed the display_location_section branch from 8826bf8 to 7e62261 Compare April 8, 2022 16:55
@Emilgardis
Copy link
Contributor Author

fixed the build error, remembered I had this pr and figured I'd fix it while on the phone, using dev.github.com seems promising, but it's not too great 😅

@Emilgardis Emilgardis force-pushed the display_location_section branch from 7e62261 to 9cbcd93 Compare June 11, 2022 17:27
@yaahc
Copy link
Collaborator

yaahc commented Jul 11, 2022

I'm sorry for leaving this sitting around for so long. I'll go back and fix the new clippy warnings in a followup, thank you again for the PR!

@yaahc yaahc merged commit 08e216d into eyre-rs:master Jul 11, 2022
@Emilgardis
Copy link
Contributor Author

No worries! I know you're busy :D

@Emilgardis Emilgardis deleted the display_location_section branch July 11, 2022 18:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow omitting location/track-caller via function
2 participants