Skip to content

Conversation

@Half-Shot
Copy link
Collaborator

Made changes according to #46

raise e
except Exception as e:
self.logger.error("Exception thrown during sync\n %s", str(e))
self.logger.error("Exception thrown during sync\n %s", e)
Copy link
Member

Choose a reason for hiding this comment

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

this should probably just use:

self.logger.exception("Exception thrown during sync")

Copy link
Member

Choose a reason for hiding this comment

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

Also, why is the logger not defined at the module level as:

logger = logging.getLogger(__name__)

Changed logger.error to logger.exception
@erikjohnston
Copy link
Member

flaaaaaaaaaaake8

@Half-Shot
Copy link
Collaborator Author

...I fixed and amended this...git please 😭

Fix logger spacing
Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

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

LGTM

@Half-Shot Half-Shot merged commit 8952320 into matrix-org:master Oct 12, 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.

2 participants