Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
aequitas committed Jun 29, 2014
1 parent 4fa8884 commit c2cadd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion rcfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
from __future__ import unicode_literals, print_function
from os.path import join, expanduser
import os
import logging

__version__ = "0.1.1"
__author__ = "Johan Bloemberg"
__license__ = "MIT"

log = logging.getLogger(__name__)

try: # Python 2
import ConfigParser
Expand Down Expand Up @@ -48,7 +50,8 @@ def get_config(appname, config_file):
]

config = ConfigParser.ConfigParser()
config.read(files)
read = config.read(files)
log.debug('files read: %s' % read)

if not config.has_section(appname):
return {}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def read(fname):

setup(
name='rcfile',
version="0.1.1",
version="0.1.2",
description='Configuration file loader',
long_description=read("README.rst"),
author='Johan Bloemberg',
Expand Down

0 comments on commit c2cadd2

Please sign in to comment.