Add some basic logging to the application. Also for severe errors, track them in info.log file in local folder

This commit is contained in:
Alessandro
2020-04-11 15:27:05 +02:00
parent ab32fbbf98
commit eaeb51de65
10 changed files with 86 additions and 20 deletions

View File

@@ -1,3 +1,4 @@
import logging
import re
from PyQt5.QtGui import QPixmap
from PyQt5.QtCore import pyqtSlot, pyqtSignal, QObject
@@ -347,6 +348,7 @@ class ForecastData(_BaseWeatherData):
self._set_dates(forecast, rows["solar_row"])
self._set_labels_values(labels_table)
except Exception:
logging.error("Update ForecastData failure")
pass
def remove_data(self):