Permalink
Browse files

Make PyCountry shut the hell up.

  • Loading branch information...
1 parent c482ec3 commit fa4e6babd7930d4c3faf012fa83d18cf8226c9d5 @spladug spladug committed Feb 21, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 postcards/__init__.py
View
@@ -1,7 +1,11 @@
import os
+import logging
from flask import Flask
+logging.basicConfig()
+logging.getLogger('pycountry.db').setLevel(logging.CRITICAL)
+
app = Flask(__name__)
app.config.from_envvar('POSTCARD_SETTINGS')
app.secret_key = os.urandom(24)

0 comments on commit fa4e6ba

Please sign in to comment.