Skip to content

Commit 118cf0a

Browse files
author
Ask Solem
committed
Errors in compat logging adapter
1 parent 7965ad9 commit 118cf0a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

celery/utils/compat.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -312,27 +312,27 @@ def debug(self, msg, *args, **kwargs):
312312
self.log(logging.DEBUG, msg, args, **kwargs)
313313

314314
def info(self, msg, *args, **kwargs):
315-
self.log(logging.INFO, msg, *args, **kwargs)
315+
self.log(logging.INFO, msg, args, **kwargs)
316316

317317
def warning(self, msg, *args, **kwargs):
318-
self.log(logging.WARNING, msg, *args, **kwargs)
318+
self.log(logging.WARNING, msg, args, **kwargs)
319319
warn = warning
320320

321321
def error(self, msg, *args, **kwargs):
322-
self.log(logging.ERROR, msg, *args, **kwargs)
322+
self.log(logging.ERROR, msg, args, **kwargs)
323323

324324
def exception(self, msg, *args, **kwargs):
325325
kwargs.setdefault("exc_info", 1)
326326
self.error(msg, *args, **kwargs)
327327

328328
def critical(self, msg, *args, **kwargs):
329-
self.log(logging.CRITICAL, msg, *args, **kwargs)
329+
self.log(logging.CRITICAL, msg, args, **kwargs)
330330
fatal = critical
331331

332-
def log(self, level, msg, *args, **kwargs):
332+
def log(self, level, msg, args, exc_info=None, extra=None):
333333
if self.logger.isEnabledFor(level):
334334
msg, kwargs = self.process(msg, kwargs)
335-
self._log(level, msg, *args, **kwargs)
335+
self._log(level, msg, args, exc_info=None, extra=None)
336336

337337
def makeRecord(self, name, level, fn, lno, msg, args, exc_info,
338338
func=None, extra=None):
@@ -365,8 +365,8 @@ def _log(self, level, msg, args, exc_info=None, extra=None):
365365
args, exc_info, func, extra)
366366
self.logger.handle(record)
367367

368-
def isEnabledFor(self, level, *args, **kwargs):
369-
return self.logger.isEnabledFor(level, *args, **kwargs)
368+
def isEnabledFor(self, level):
369+
return self.logger.isEnabledFor(level)
370370

371371
def addHandler(self, hdlr):
372372
self.logger.addHandler(hdlr)

0 commit comments

Comments
 (0)