fix: log writing methods without msg arguments
For some reason I did not add the arg msg=
to the log methods. Hence I will fix this and other logger without the the arg
File "/usr/local/src/disdrodlv2/modules/classes.py", line 135, in insert2db
self.logger.info('inserting to DB', self.timestamp.isoformat())
● disdrodlv2.service - disdrodlv2
Loaded: loaded (/etc/systemd/system/disdrodlv2.service; enabled; preset: enabled)
Active: active (running) since Mon 2024-02-12 08:30:20 UTC; 4min 24s ago
Main PID: 26844 (python)
Tasks: 4 (limit: 3919)
CPU: 2.722s
CGroup: /system.slice/disdrodlv2.service
└─26844 /usr/local/src/disdrodlv2/venv/bin/python /usr/local/src/disdrodlv2/main.py -c /usr/local/src/disdrodlv2/configs_netcdf/config_001_CABAUW.yml
Feb 12 08:34:05 parsivel001pi python[26844]: msg = msg % self.args
Feb 12 08:34:05 parsivel001pi python[26844]: ~~~~^~~~~~~~~~~
Feb 12 08:34:05 parsivel001pi python[26844]: TypeError: not all arguments converted during string formatting
Feb 12 08:34:05 parsivel001pi python[26844]: Call stack:
Feb 12 08:34:05 parsivel001pi python[26844]: File "/usr/local/src/disdrodlv2/main.py", line 62, in <module>
Feb 12 08:34:05 parsivel001pi python[26844]: telegram.insert2db()
Feb 12 08:34:05 parsivel001pi python[26844]: File "/usr/local/src/disdrodlv2/modules/classes.py", line 135, in insert2db
Feb 12 08:34:05 parsivel001pi python[26844]: self.logger.info('inserting to DB', self.timestamp.isoformat())
Feb 12 08:34:05 parsivel001pi python[26844]: Message: 'inserting to DB'
Feb 12 08:34:05 parsivel001pi python[26844]: Arguments: ('2024-02-12T08:34:00.816728+00:00',)
root@parsivel001pi:/usr/local/src/disdrodlv2#