Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Update
python-rst2pdf
rst2pdf-0.93-fix-logging.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rst2pdf-0.93-fix-logging.patch of Package python-rst2pdf
--- rst2pdf/log.py +++ rst2pdf/log.py @@ -4,11 +4,12 @@ import logging import sys -logging.basicConfig( - format='[%(levelname)s] %(filename)s:%(lineno)d %(message)s', - level=logging.WARNING) - log = logging.getLogger('rst2pdf') +_fmt = logging.Formatter('[%(levelname)s] %(filename)s:%(lineno)d %(message)s') +_hdlr = logging.StreamHandler() +_hdlr.setFormatter(_fmt) +log.addHandler(_hdlr) +log.setLevel(logging.WARNING) def nodeid(node): """Given a node, tries to return a way to see where it was in the @@ -23,4 +24,4 @@ if node.source: fname=str(node.source) except: pass - return 'near line %s in file %s'%(line,fname) \ No newline at end of file + return 'near line %s in file %s'%(line,fname)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor