Logger' object has no attribute 'INFO'

More
21 Sep 2023 06:34 - 21 Sep 2023 06:40 #281281 by mariusl
Hi
I am using versa_probe with Gmoccapy on a master config. This error comes up on almost every action.
Is there something that I have to set?
Traceback (most recent call last):File "/usr/lib/python3/dist-packages/qtvcp/widgets/versa_probe.py", line 307, in read_stderrorself.parse_input(line)File "/usr/lib/python3/dist-packages/qtvcp/widgets/versa_probe.py", line 323, in parse_inputif LOG.getEffectiveLevel() < LOG.INFO:AttributeError: 'Logger' object has no attribute 'INFO'

Regards
Marius


www.bluearccnc.com

Last edit: 21 Sep 2023 06:40 by mariusl.

Please Log in or Create an account to join the conversation.

More
21 Sep 2023 13:34 - 21 Sep 2023 13:36 #281307 by cmorley
You could change the < LOG.INFO to < 20

In versa_probe.py


And I'll try to get to thecreal fix tonight. Weird that it dirsntverrorclike that in qtdragon.
Last edit: 21 Sep 2023 13:36 by cmorley.

Please Log in or Create an account to join the conversation.

More
21 Sep 2023 13:44 #281309 by Aciera
should INFO not be lowercase?

LOG.info

Please Log in or Create an account to join the conversation.

More
21 Sep 2023 13:46 #281311 by cmorley
No thatcteferences the info function rather the the info integer. It tried it.

For whatever reason LOG object doesn't have the log level variables defined.

Please Log in or Create an account to join the conversation.

More
21 Sep 2023 13:47 #281312 by cmorley
Importing logging andxthen usingvlogging.INFO works

Please Log in or Create an account to join the conversation.

More
21 Sep 2023 13:58 #281314 by mariusl

should INFO not be lowercase?

LOG.info

Tried that already/ It gives some other error.

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

More
23 Sep 2023 01:15 #281415 by cmorley
I pushed a fix for this.
The following user(s) said Thank You: mariusl

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.167 seconds
Powered by Kunena Forum