Merge "Fix example issue"

This commit is contained in:
Jenkins 2016-05-05 14:14:15 +00:00 committed by Gerrit Code Review
commit c6c114e740
3 changed files with 12 additions and 3 deletions

View File

@ -80,4 +80,7 @@ if __name__ == '__main__':
LOG.debug("A debugging message")
LOG.warning("A warning occurred")
LOG.error("An error occurred")
LOG.exception("An Exception occurred")
try:
raise Exception("This is exceptional")
except Exception:
LOG.exception("An Exception occurred")

View File

@ -97,4 +97,7 @@ if __name__ == '__main__':
LOG.debug("A debugging message")
LOG.warning("A warning occurred")
LOG.error("An error occurred")
LOG.exception("An Exception occurred")
try:
raise Exception("This is exceptional")
except Exception:
LOG.exception("An Exception occurred")

View File

@ -81,4 +81,7 @@ if __name__ == '__main__':
LOG.debug("A debugging message") # Debug messages are not translated
LOG.warning(_LW("A warning occurred"))
LOG.error(_LE("An error occurred"))
LOG.exception(_("An Exception occurred"))
try:
raise Exception(_("This is exceptional"))
except Exception:
LOG.exception(_("An Exception occurred"))