[issue13235] logging.warn() is not documented
anatoly techtonik
report at bugs.python.org
Fri Oct 21 02:43:18 CEST 2011
anatoly techtonik <techtonik at gmail.com> added the comment:
./trac/env.py: self.log.warn('base_url option not set in configuration, '
./trac/env.py: self.log.warn('Couldn\'t write sample configuration file (%s)', e,
./trac/web/main.py: ## env.log.warn("%d uncollectable objects found.", uncollectable)
./trac/web/main.py: env.log.warn(exception_to_unicode(e))
./trac/web/.svn/text-base/main.py.svn-base: ## env.log.warn("%d uncollectable objects found.", uncollectable)
./trac/web/.svn/text-base/main.py.svn-base: env.log.warn(exception_to_unicode(e))
./trac/wiki/formatter.py: self.env.log.warn(e)
./trac/wiki/.svn/text-base/formatter.py.svn-base: self.env.log.warn(e)
./trac/versioncontrol/api.py: self.log.warn("Discarding duplicate repository '%s'",
./trac/versioncontrol/api.py: self.log.warn("Found no repositories matching '%s' base.",
./trac/versioncontrol/svn_prop.py: self.log.warn("svn:externals entry %s doesn't contain "
./trac/versioncontrol/.svn/text-base/api.py.svn-base: self.log.warn("Discarding duplicate repository '%s'",
./trac/versioncontrol/.svn/text-base/api.py.svn-base: self.log.warn("Found no repositories matching '%s' base.",
./trac/versioncontrol/.svn/text-base/svn_prop.py.svn-base: self.log.warn("svn:externals entry %s doesn't contain "
./trac/ticket/roadmap.py: def warn(msg):
./trac/ticket/roadmap.py: warn(_('Milestone "%(name)s" already exists, please '
./trac/ticket/roadmap.py: warn(_('You must provide a name for the milestone.'))
./trac/ticket/roadmap.py: warn(_('Completion date may not be in the future'))
./trac/ticket/.svn/text-base/roadmap.py.svn-base: def warn(msg):
./trac/ticket/.svn/text-base/roadmap.py.svn-base: warn(_('Milestone "%(name)s" already exists, please '
./trac/ticket/.svn/text-base/roadmap.py.svn-base: warn(_('You must provide a name for the milestone.'))
./trac/ticket/.svn/text-base/roadmap.py.svn-base: warn(_('Completion date may not be in the future'))
./trac/admin/web_ui.py: self.env.log.warn("Adding %s to group %s: " \
./trac/admin/.svn/text-base/web_ui.py.svn-base: self.env.log.warn("Adding %s to group %s: " \
./trac/prefs/web_ui.py: self.log.warn('Unknown preference panel %r', panel_id)
./trac/prefs/.svn/text-base/web_ui.py.svn-base: self.log.warn('Unknown preference panel %r', panel_id)
./trac/.svn/text-base/env.py.svn-base: self.log.warn('base_url option not set in configuration, '
./trac/.svn/text-base/env.py.svn-base: self.log.warn('Couldn\'t write sample configuration file (%s)', e,
quite a lot + probably trac plugins. So it's better to go through deprecation cycle and show appropriate message (but frankly - I don't mind against convenience alias - we already have some in testing modules).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13235>
_______________________________________
More information about the Python-bugs-list
mailing list