Closed shishir-a412ed closed 8 years ago
ping @runcom @rhatdan
fine to me, eventually we should send those logs to journald instead of stderr
@runcom
I checked these error messages using journalctl
, and I was able to see them.
E.g if I run docker volume create -d lvm --name foobar --opt size=2G
where my volume_group size is 1G I can see an error message logged in my journalctl.
When I dojournalctl -u docker-lvm-plugin -f
. I see my messages.
Anything else I need to take care of ?
Shishir
Those messages are coming from the docker-lvm-plugin.service unit file versus coming from the docker-lvm-plugin executable. Probably would be better to write to syslog handle it that way.
@rhatdan So after logging to syslog
, Can I still use journalctl
to check my errors ?
Shishir
Yes journalctl catches all syslog messages.
@rhatdan @runcom PTAL.
Shishir
Looks good, should we have logs.Info to tell when the tool does major changes to lvm?
Sure I can add one. Merging this one. LGTM.
Signed-off-by: Shishir Mahajan shishir.mahajan@redhat.com