Skip to content

Commit

Permalink
Pylint: Fixed name of parm in overriding log_message()
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier committed Nov 2, 2017
1 parent 0db8d15 commit 994cbad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pywbem/_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,14 +538,15 @@ def log(self, format_, args, level=logging.INFO):
"""
self.server.listener.logger.log(level, format_, *args)

def log_message(self, format_, *args):
# pylint: disable=redefined-builtin
def log_message(self, format, *args):
"""
In the standard handler class, this function is called for anything
that needs to get logged (e.g. from :meth:`log_request`).
We override it in order to use our own log function.
"""
self.log(format_, args, logging.INFO)
self.log(format, args, logging.INFO)

def log_request(self, code='-', size='-'):
"""
Expand Down

0 comments on commit 994cbad

Please sign in to comment.