Add flag -k to journalctl show only kernel messages

This commit is contained in:
Luciano Antonio Borguetti Faustino 2015-09-10 23:53:34 -03:00
parent 5aa8b0fc86
commit e0c994c4c5

View File

@ -164,7 +164,7 @@ func (self *OomParser) StreamOoms(outStream chan *OomInstance) {
}
func callJournalctl() (io.ReadCloser, error) {
cmd := exec.Command("journalctl", "-f")
cmd := exec.Command("journalctl", "-k", "-f")
readcloser, err := cmd.StdoutPipe()
if err != nil {
return nil, err