https://kedro.org/ logo
#questions
Title
# questions
m

meharji arumilli

12/08/2023, 3:25 PM
Hi, I have upgraded to kedro==0.18.14 from 0.18.1. The logging behaviour is unexpected in 0.18.14. Normally in 0.18.1 if the code breaks, it allows to click on the line of the code where it broke which takes to the specific line in the project. Unfortunately, in 0.18.14 it shows the text in the console but it is not clickable. The traceback is as shown below. and the loggin-yml is like
Copy code
version: 1

disable_existing_loggers: False

formatters:
  simple:
    format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"

handlers:
  console:
    class: logging.StreamHandler
    level: INFO
    formatter: simple
    stream: <ext://sys.stdout>

  info_file_handler:
    class: logging.handlers.RotatingFileHandler
    level: INFO
    formatter: simple
    filename: info.log
    maxBytes: 10485760 # 10MB
    backupCount: 20
    encoding: utf8
    delay: True

  error_file_handler:
    class: logging.handlers.RotatingFileHandler
    level: ERROR
    formatter: simple
    filename: errors.log
    maxBytes: 10485760 # 10MB
    backupCount: 20
    encoding: utf8
    delay: True

  rich:
    class: kedro.logging.RichHandler
    rich_tracebacks: True
    # Advance options for customisation.
    # See <https://docs.kedro.org/en/stable/logging/logging.html#project-side-logging-configuration>
    # tracebacks_show_locals: False

loggers:
  kedro:
    level: INFO

  epc_fi:
    level: INFO

root:
  handlers: [console, info_file_handler, error_file_handler]
Can someone help to make the traceback clickable ?
n

Nok Lam Chan

12/08/2023, 3:29 PM
Is this on Pycharm? Try to enable the emulate option it's an IDE problem
m

meharji arumilli

12/08/2023, 3:29 PM
Yes, it is pycharm
enabling emulate changed the traceback style in terms of colors, yet the traceback is not clickable
n

Nok Lam Chan

12/08/2023, 4:35 PM
Are you using an older version of Pycharm? you may need to upgrade to fix this.
It does changes the color, thus "emulate" what you would see in a terminal