Skip to content

Commit

Permalink
Fix argument list for _log method call
Browse files Browse the repository at this point in the history
_log is an internal method that was edited for DM-8995. The internal
method is being used because the log level is a free parameter here.
The real fix is to provide a public API than can take an arbitrary
level integer.
  • Loading branch information
timj committed Jan 19, 2017
1 parent aefc628 commit ac63e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/pipe/base/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def logPairs(obj, pairs, logLevel=Log.DEBUG):
obj.log.fatal("%s.metadata.add(name=%r, value=%r) failed with error=%s",
type(obj).__name__, name, value, e)
strList.append("%s=%s" % (name, value))
obj.log._log(logLevel, "; ".join(strList))
obj.log._log(logLevel, True, "; ".join(strList))


def logInfo(obj, prefix, logLevel=Log.DEBUG):
Expand Down

0 comments on commit ac63e95

Please sign in to comment.