* fixed syslog logging format
* bumped version to 0.2
This commit is contained in:
parent
3f56297e31
commit
8adf8f14f8
@ -309,7 +309,7 @@ if __name__ == '__main__':
|
|||||||
log.addHandler(handler)
|
log.addHandler(handler)
|
||||||
|
|
||||||
handler = logging.handlers.SysLogHandler(address='/dev/log')
|
handler = logging.handlers.SysLogHandler(address='/dev/log')
|
||||||
formatter = logging.Formatter(fmt='zsnapper %(message)s')
|
formatter = logging.Formatter(fmt='zsnapper[%(process)s] %(message)s')
|
||||||
handler.setFormatter(formatter)
|
handler.setFormatter(formatter)
|
||||||
handler.setLevel(logging.INFO)
|
handler.setLevel(logging.INFO)
|
||||||
log.addHandler(handler)
|
log.addHandler(handler)
|
||||||
|
6
setup.py
6
setup.py
@ -6,9 +6,7 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
from distutils import setup
|
from distutils import setup
|
||||||
|
|
||||||
import pwgen
|
version = '0.2'
|
||||||
|
|
||||||
version = '0.1'
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='zsnapper',
|
name='zsnapper',
|
||||||
@ -21,7 +19,7 @@ setup(
|
|||||||
license='BSD',
|
license='BSD',
|
||||||
packages=['zsnaplib'],
|
packages=['zsnaplib'],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 1 - Planning',
|
'Development Status :: 3 - Alpha',
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
'Intended Audience :: System Administrators',
|
'Intended Audience :: System Administrators',
|
||||||
'License :: OSI Approved :: BSD License',
|
'License :: OSI Approved :: BSD License',
|
||||||
|
Loading…
Reference in New Issue
Block a user