kitty icon indicating copy to clipboard operation
kitty copied to clipboard

Logger displays duplicated messages

Open Barmaley13 opened this issue 5 years ago • 0 comments

I noticed that I get duplicated logger messages on the terminal.

I've added following code to my main to fix the issue.

from kitty.core.kitty_object import KittyObject

# Remove duplicated log messages
logger = KittyObject.get_logger()
logger.propagate = False
KittyObject._logger = logger

But this issue can be fixed if we add logger.propagate = False to KittyObject method get_logger. Not sure if that is intended behavior or not. But posting this here in case someone else runs into the same problem.

Thank you for creating Kitty!

Barmaley13 avatar Feb 25 '20 01:02 Barmaley13