Logger' object has no attribute 'INFO'

More
3 years 1 month ago #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?
Code:
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

Please Log in to join the conversation.

More
3 years 1 month ago #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.

Please Log in to join the conversation.

More
3 years 1 month ago #281309 by Aciera
should INFO not be lowercase?

LOG.info

Please Log in to join the conversation.

More
3 years 1 month ago #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 to join the conversation.

More
3 years 1 month ago #281312 by cmorley
Importing logging andxthen usingvlogging.INFO works

Please Log in to join the conversation.

More
3 years 1 month ago #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 to join the conversation.

More
3 years 1 month ago #281415 by cmorley
I pushed a fix for this.

Please Log in to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum