genebean / PiWeatherRock

Displays local weather on a Raspberry Pi
https://piweatherrock.technicalissues.us
MIT License
50 stars 23 forks source link

Logging #53

Closed metaMMA closed 4 years ago

metaMMA commented 4 years ago
metaMMA commented 4 years ago

Still need to amend update.py EDIT: done

metaMMA commented 4 years ago

This isn't working for me @metaMMA

$ export DISPLAY=:0
$ /usr/bin/python3 /home/pi/PiWeatherRock/weather.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "/home/pi/PiWeatherRock/weather.py", line 806, in <module>
    MY_DISP = MyDisplay()
  File "/home/pi/PiWeatherRock/weather.py", line 192, in __init__
    self.log = get_logger()
  File "/home/pi/PiWeatherRock/weather.py", line 168, in get_logger
    handler = logging.handlers.RotatingFileHandler(
AttributeError: module 'logging' has no attribute 'handlers'

Copy and paste error on my part. I missed the last standard import: import logging.handlers.