Commit 01543483 authored by Yuanle Song's avatar Yuanle Song
Browse files

v0.6.3 capture python warnings using logging module.

this is a bugfix for v0.6.2
parent cfa0daa6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
(defproject python/lein-template "0.6.2"
(defproject python/lein-template "0.6.3"
  :description "lein template for a python project"
  :repositories [["snapshots"
                  {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots"
+3 −0
Original line number Diff line number Diff line
@@ -5,8 +5,11 @@
config logger
"""

import logging

from pkg_resources import resource_filename
from logging.config import fileConfig


logging.captureWarnings(True)
fileConfig(resource_filename("{{name}}", "logger.conf"))