3

I can not understand what is wrong in this line, could you explain it for me :)?

Code:

log.debug(F"Create Error with receive_date={self.receive_date} data={data}")

Pylint:

ErrorService/Error.py:24:8: W1202: Use % formatting in logging functions and pass the % parameters as arguments (logging-format-interpolation)
Bartłomiej Bartnicki
  • 1,067
  • 2
  • 14
  • 30
  • 4
    See, if this thread on pylint and logging format interpolation is useful : https://stackoverflow.com/questions/34619790/pylint-message-logging-format-interpolation – salsinga Jan 29 '20 at 10:16
  • Does this answer your question? [PyLint message: logging-format-interpolation](https://stackoverflow.com/questions/34619790/pylint-message-logging-format-interpolation) – Josh Correia Oct 20 '20 at 16:55

0 Answers0