Permalink
Browse files

Configure logging handler at error level.

Refs #18.
  • Loading branch information...
1 parent 3a33d42 commit 13324cbda20b0daee0e4f7d15187be078534d67d @JNRowe committed Jan 16, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 hubugs/__init__.py
View
@@ -39,13 +39,22 @@
.. moduleauthor:: `%s <mailto:%s>`__
""" % parseaddr(__author__)
+import atexit
+import logging
import sys
import webbrowser
import jinja2 # This unused import is here to silence a warning caused by setuptools
import argh
+
+logging.basicConfig(level=logging.ERROR,
+ format="%(asctime)s - %(message)s",
+ datefmt="%Y-%m-%dT%H:%M:%S")
+atexit.register(logging.shutdown)
+
+
from github2.request import charset_from_headers
from . import (template, utils)

0 comments on commit 13324cb

Please sign in to comment.