diff --git a/logging/logging.py b/logging/logging.py index 5546d55d..5f124e20 100644 --- a/logging/logging.py +++ b/logging/logging.py @@ -50,7 +50,7 @@ class Logger: self.log(CRITICAL, msg, *args) -_level = NOTSET +_level = INFO _loggers = {} def getLogger(name): @@ -60,6 +60,6 @@ def getLogger(name): _loggers[name] = l return l -def basicConfig(level=DEBUG): +def basicConfig(level=INFO): global _level _level = level diff --git a/logging/setup.py b/logging/setup.py index bd36f164..6c66122e 100644 --- a/logging/setup.py +++ b/logging/setup.py @@ -1,10 +1,18 @@ -from distutils.core import setup +import sys +# Remove current dir from sys.path, otherwise setuptools will peek up our +# module instead of system. +sys.path.pop(0) +from setuptools import setup + setup(name='micropython-logging', - version='0.0.3', - description='logging package for MicroPython', + version='0.0.4', + description='logging module for MicroPython', + long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", url='https://github.com/micropython/micropython/issues/405', author='MicroPython Developers', author_email='micro-python@googlegroups.com', + maintainer='MicroPython Developers', + maintainer_email='micro-python@googlegroups.com', license='MIT', py_modules=['logging'])