Hallo,
beim Aufräumen meiner DBLog Datenbank sind mir mehrere tausend Datensätze vom TYPE "AT" aufgefallen, welche immer erzeugt werden, wenn ich z.B. auf ein dummy Device "set <DEVICE> on-for-timer <sekunden>" anwende.
Ein notify habe ich schon immer angelegt, welches das Attribut DbLogExclude .* automatisch setzt, wenn ich ein neues Device anlege:
defmod no_DbLogExclude notify global:DEFINED.* attr $EVTPART1 DbLogExclude .*
attr no_DbLogExclude DbLogExclude .*
attr no_DbLogExclude comment Dieses notify setzt beim neu anlegen von Devices das Attribut "DbLogExclude" automatisch auf ".*"
attr no_DbLogExclude group Hardware
attr no_DbLogExclude icon audio_playlist
attr no_DbLogExclude room Logging,System
setstate no_DbLogExclude 2020-07-05 11:16:19
setstate no_DbLogExclude 2020-06-30 20:03:44 state active
Der Befehl "on-for-timer" erzeugt ja ein at - Device, welches sich auch selbst nach dem Ablauf der Zeit wieder löscht. Wenn ich dies mir ansehe, ist hier sogar das Attribut DbLogExclude .* gesetzt:
defmod du_Hof_off at 2020-07-05T11:26:19 set du_Hof off
attr du_Hof_off DbLogExclude .*
attr du_Hof_off room Test
setstate du_Hof_off Next: 11:26:19
setstate du_Hof_off 2020-07-05 11:16:19 state Next: 11:26:19
Gibt es eine Möglichkeit diese Logeinträge einfach zu unterbinden?
Oder muss ich diese über DbRep nach einiger Zeit einfach wieder löschen.
Mit diesem (und jedem anderen dummy Device), kann ich das Verhalten jederzeit reproduzieren.
defmod du_Hof dummy
attr du_Hof DbLogExclude .*
attr du_Hof room Test
attr du_Hof webCmd on:off
setstate du_Hof off
setstate du_Hof 2020-07-05 11:26:19 state off
Gruß Reinhard
Hallo Reinhard,
Du kannst im DbLog devices bzw. devspec komplett vom logging ausschliessen mit
excludeDevs TYPE=at
Grüsse,
Heiko
Hallo Heiko,
vielen Dank für den Tipp, klappt einwandfrei.
Gruß Reinhard