[issue46957] Logger with a custom class breaks on copy

2022-03-08 Thread Eric V. Smith
Eric V. Smith added the comment: In what way does it break? You haven't shown an error. Why are you deepcopying the logger? -- nosy: +eric.smith ___ Python tracker ___ __

[issue46957] Logger with a custom class breaks on copy

2022-03-08 Thread Govinda Totla
New submission from Govinda Totla : The logging module allows you set a custom Logger class as the default logger. However, this breaks when we try to copy the logger which was created before setting the logger class ``` import copy import logging # Some module we don't control oldLogger = l