[Reproducible-builds] [dh-python] 57/183: log a bit less by default
Jérémy Bobbio
lunar at moszumanska.debian.org
Fri Sep 19 15:30:19 UTC 2014
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch pu/reproducible_builds
in repository dh-python.
commit ef20f07ab2bb7f41f1d04893bc2991b90b58baf1
Author: Piotr Ożarowski <piotr at debian.org>
Date: Wed Aug 7 16:41:25 2013 +0200
log a bit less by default
---
dh_python2 | 3 ++-
dhpython/build/__init__.py | 2 +-
dhpython/fs.py | 4 ++--
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/dh_python2 b/dh_python2
index 9b28cff..ee7f1ed 100755
--- a/dh_python2
+++ b/dh_python2
@@ -353,7 +353,7 @@ def main():
else:
if re.search('\n\s*dh_pydeb', rules) or \
re.search('\n\s*dh\s+[^#]*--with[^#]+pydeb', rules):
- log.warning('dh_pydeb detected, PyDist feature disabled')
+ log.info('dh_pydeb detected, PyDist feature disabled')
options.guess_deps = False
if not args:
@@ -369,6 +369,7 @@ def main():
if options.verbose or os.environ.get('DH_VERBOSE') == '1':
log.setLevel(logging.DEBUG)
+ log.debug('version: %s', parser.get_version().split(' ', 1)[-1])
log.debug('argv: %s', sys.argv)
log.debug('options: %s', options)
log.debug('args: %s', args)
diff --git a/dhpython/build/__init__.py b/dhpython/build/__init__.py
index 49ab5b5..7f89907 100644
--- a/dhpython/build/__init__.py
+++ b/dhpython/build/__init__.py
@@ -32,7 +32,7 @@ for i in (i[7:-3] for i in glob1(dirname(__file__), 'plugin_*.py')):
module.BuildSystem.is_usable()
plugins[i] = module.BuildSystem
except Exception as err:
- if log.level < logging.WARN:
+ if log.level < logging.INFO:
log.info("cannot initialize '%s'", i, exc_info=True)
else:
log.info("cannot initialize '%s': %s", i, err)
diff --git a/dhpython/fs.py b/dhpython/fs.py
index d692acc..e2431c6 100644
--- a/dhpython/fs.py
+++ b/dhpython/fs.py
@@ -75,7 +75,7 @@ def share_files(srcdir, dstdir, interpreter):
log.warn('destination file exist, '
'cannot rename %s to %s', fpath1_orig, fpath1)
else:
- log.warn('renaming %s to %s', fpath1_orig, fpath1)
+ log.info('renaming %s to %s', fpath1_orig, fpath1)
os.renames(fpath1_orig, fpath1)
i = new_name
fpath2 = join(dstdir, i)
@@ -275,7 +275,7 @@ class Scan:
log.warn('destination file exist, '
'cannot rename %s to %s', fname, new_fn)
else:
- log.warn('renaming %s to %s', fname, new_fn)
+ log.info('renaming %s to %s', fname, new_fn)
os.rename(fpath, new_fpath)
return new_fpath
return fpath
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dh-python.git
More information about the Reproducible-builds
mailing list