mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
Annotations for logfile maximum size revised
This commit is contained in:
parent
abe87b4218
commit
c85b929b75
1 changed files with 2 additions and 2 deletions
|
@ -297,9 +297,9 @@ class ConfigUpdate(CBPiExtension):
|
|||
|
||||
# check if SENSOR_LOG_MAX_BYTES exists in config
|
||||
if SENSOR_LOG_MAX_BYTES is None:
|
||||
logger.info("INIT SENSOR_LOG_MAX_BYTES")
|
||||
logger.info("Init maximum size of sensor logfiles")
|
||||
try:
|
||||
await self.cbpi.config.add("SENSOR_LOG_MAX_BYTES", 100000, ConfigType.NUMBER, "Max. number of bytes in sensor logs")
|
||||
await self.cbpi.config.add("SENSOR_LOG_MAX_BYTES", 100000, ConfigType.NUMBER, "Max. number of bytes in sensor logfiles")
|
||||
except:
|
||||
logger.warning('Unable to update database')
|
||||
|
||||
|
|
Loading…
Reference in a new issue