u236 / homed-service-common

Common code for HOMEd services
GNU General Public License v3.0
3 stars 5 forks source link

Добавить опцию, при включении которой в вывод логов в stdout/stderr в строку не добавляется дата/время. Эти логи себе забирает journald, а он сам добавляет дату/время в строку. #1

Closed u236 closed 2 months ago

u236 commented 2 months ago

Пример дублирования:

авг 28 13:48:56 pi-iot.sheridan-home.local homed-zigbee-daemon[15799]: 2024.08.28 13:48:56.284 (dbg) zigbee:     Device "PowerSocket_SPComputer" endpoint "0x01" cluster "0x0b04" attribute "0x050b" report received with type "0x29" and data "ce:00" and transaction id 151
авг 28 13:48:56 pi-iot.sheridan-home.local homed-zigbee-daemon[15799]: 2024.08.28 13:48:56.446 (dbg) zigbee:     Device "Radioactivity_One" endpoint "0x01" cluster "0x0400" attribute "0xf002" report received with type "0x23" and data "0e:00:00:00" and transaction id 112
авг 28 13:48:56 pi-iot.sheridan-home.local homed-zigbee-daemon[15799]: 2024.08.28 13:48:56.446 (dbg) zigbee:     Device "Radioactivity_One" endpoint "0x01" cluster "0x0400" attribute "0xf001" report received with type "0x21" and data "5b:00" and transaction id 112
авг 28 13:48:57 pi-iot.sheridan-home.local homed-zigbee-daemon[15799]: 2024.08.28 13:48:57.963 (dbg) zigbee:     Device "HumanDetector_BedStairs" endpoint "0x01" cluster "0xef00" command "0x02" received with payload "99:02:65:02:00:04:00:00:00:0c" and transaction id 56
авг 28 13:48:58 pi-iot.sheridan-home.local homed-zigbee-daemon[15799]: 2024.08.28 13:48:58.070 (dbg) zigbee:     Device "HumanDetector_BedStairs" endpoint "0x01" cluster "0xef00" command "0x02" received with payload "99:03:69:02:00:04:00:00:00:00" and transaction id 57
авг 28 13:48:58 pi-iot.sheridan-home.local homed-zigbee-daemon[15799]: 2024.08.28 13:48:58.713 (dbg) zigbee:     Device "PowerSocket_CCTVMonitor" endpoint "0x01" cluster "0x0b04" attribute "0x0508" report received with type "0x21" and data "62:00" and transaction id 213
авг 28 13:48:58 pi-iot.sheridan-home.local homed-zigbee-daemon[15799]: 2024.08.28 13:48:58.772 (dbg) zigbee:     Device "PowerSocket_SPCSound" endpoint "0x01" cluster "0x0b04" attribute "0x0508" report received with type "0x21" and data "f8:00" and transaction id 182
авг 28 13:48:59 pi-iot.sheridan-home.local homed-zigbee-daemon[15799]: 2024.08.28 13:48:59.391 (dbg) zigbee:     Device "PowerSocket_WaterPump" endpoint "0x01" cluster "0x0b04" attribute "0x0505" report received with type "0x21" and data "f1:00" and transaction id 216
авг 28 13:49:00 pi-iot.sheridan-home.local homed-zigbee-daemon[15799]: 2024.08.28 13:49:00.218 (dbg) zigbee:     Device "PowerSocket_SPComputer" endpoint "0x01" cluster "0x0b04" attribute "0x0508" report received with type "0x21" and data "a1:03" and transaction id 152
авг 28 13:49:00 pi-iot.sheridan-home.local homed-zigbee-daemon[15799]: 2024.08.28 13:49:00.402 (dbg) zigbee:     Device "Air_BedRoom" endpoint "0x03" cluster "0x040d" attribute "0x0000" report received with type "0x39" and data "f4:37:21:3a" and transaction id 232
u236 commented 2 months ago

https://github.com/u236/homed-service-common/commit/831b87d408944c3c39a14e0ac4cbe4121964e75f