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

Better exception formatting. #714

Merged
merged 1 commit into from
Jun 11, 2015
Merged

Better exception formatting. #714

merged 1 commit into from
Jun 11, 2015

Conversation

ihodes
Copy link
Member

@ihodes ihodes commented Jun 10, 2015

Review on Reviewable

stdout_handler = logging.StreamHandler(sys.stdout)
stdout_handler.setLevel(logging.INFO)
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
formatter = logging.Formatter("""\
Copy link
Contributor

Choose a reason for hiding this comment

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

is this a literal \?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, it escapes the newline.

Copy link
Contributor

Choose a reason for hiding this comment

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

weird, did not know this trick.

@danvk
Copy link
Contributor

danvk commented Jun 11, 2015

Worth noting that we lose our ability to grep logs by going to a multiline format, but that's not something we've ever done in the past.

@ihodes
Copy link
Member Author

ihodes commented Jun 11, 2015

Our logs have actually always been in a multi line format! This just adds one more newline (+ some more info) to make it easier to read & grep.

On Thu, Jun 11, 2015 at 10:43 AM, Dan Vanderkam notifications@github.com
wrote:

Worth noting that we lose our ability to grep logs by going to a multiline format, but that's not something we've ever done in the past.

Reply to this email directly or view it on GitHub:
#714 (comment)

danvk added a commit that referenced this pull request Jun 11, 2015
@danvk danvk merged commit de25632 into master Jun 11, 2015
@danvk danvk deleted the issue-649-capture-errors branch June 22, 2015 16:31
@hammer hammer unassigned danvk Feb 8, 2016
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.

None yet

2 participants