Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Configure logging handler at error level.

Refs #18.
  • Loading branch information...
commit 13324cbda20b0daee0e4f7d15187be078534d67d 1 parent 3a33d42
@JNRowe authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 hubugs/__init__.py
View
9 hubugs/__init__.py
@@ -39,6 +39,8 @@
.. moduleauthor:: `%s <mailto:%s>`__
""" % parseaddr(__author__)
+import atexit
+import logging
import sys
import webbrowser
@@ -46,6 +48,13 @@
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)
Please sign in to comment.
Something went wrong with that request. Please try again.