Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL logging #579

Open
ghost opened this issue May 2, 2024 · 1 comment
Open

MySQL logging #579

ghost opened this issue May 2, 2024 · 1 comment

Comments

@ghost
Copy link

ghost commented May 2, 2024

Hello.

I just ran into this error using the MySQL logging module.
The tables are set to values, taht are provided in the docu.

twcmanager_1  | Traceback (most recent call last):
twcmanager_1  |   File "/usr/src/TWCManager/lib/TWCManager/Control/HTTPControl.py", line 1351, in process_graphs
twcmanager_1  |     result = module.queryGreenEnergy(
twcmanager_1  |   File "/usr/src/TWCManager/lib/TWCManager/Logging/MySQLLogging.py", line 255, in queryGreenEnergy
twcmanager_1  |     self.db.ping(reconnect=True)
twcmanager_1  | AttributeError: 'NoneType' object has no attribute 'ping'

Can this cause any issues, or is this safe to ignore?

Thanks.

@MikeBishop
Copy link
Collaborator

That suggests that the db object is null, which probably means nothing is getting logged. I don't use the MySQL logger myself, but it's plainly not safe to ignore if you need that logging method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant