Logging in 3005

11 views
Skip to first unread message

Jon Tegner

unread,
Aug 28, 2022, 5:30:06 AMAug 28
to salt-...@googlegroups.com
Hi, I just recently upgraded to 3005 (RHEL-9) and are having problems with logging. In one state I have:

import logging
logger = logging.getLogger(__name__)

followed by:
logger.debug('Bla bla bla'))

This does not seem to work, get error:

NameError: name 'open' is not defined

Hints on how to fix this? Didn't get that error previously.

Thanks,
/jon

Reply all
Reply to author
Forward
0 new messages