Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
udev: Use structured logging in ActionHandler
With this we now see messages like: ``` time="2024-07-17T01:37:24Z" level=debug msg="Prepare to handle udev action" udevAction=add udevEnv="map[..big chunk of stuff here..]" time="2024-07-17T01:37:24Z" level=info msg="udev action triggering scanner wake" device=/dev/sda kind=BlockDevice name=b3270eab097d4515bac2d595665ac618 namespace=longhorn-system udevAction=add time="2024-07-17T01:44:23Z" level=info msg="udev action triggering scanner wake" device=/dev/sda kind=BlockDevice name=b3270eab097d4515bac2d595665ac618 namespace=longhorn-system udevAction=remove ``` And in the case of an unidentifiable device: ``` time="2024-07-17T01:44:39Z" level=info msg="Skip adding non-identifiable block device" device=/dev/sda ``` Signed-off-by: Tim Serong <[email protected]> (cherry picked from commit 61e0f7d)
- Loading branch information