Skip to content

The smartups.py service floods the smartups.log file #4

Description

@JardaG

It logs almost every second (pls. see below) and the log file grows unnecessarily by about 6 MB in 24 hours and thus unnecessarily increases the memory card wear in RPi.

I suggest logging only when changing any of the parameters and at least once every 1 hour, if at all.

Sample from /var/log/smartups.log file:

2020-12-31 08:00:58,243  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:00:59,460  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:00,677  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:01,899  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:03,122  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:04,345  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:05,562  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:06,783  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:07,996  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:09,219  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:10,436  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:11,653  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:12,877  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:14,094  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:15,310  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:16,523  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:17,746  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:18,968  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:20,192  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:21,415  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:22,627  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:23,848  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:25,058  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:26,275  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:27,498  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%
2020-12-31 08:01:28,714  smartups.py : INFO   Input:Connected , ChargeStatus: Charging done , SOC:91.171875%

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions