Add flag -k to journalctl show only kernel messages
This commit is contained in:
parent
5aa8b0fc86
commit
e0c994c4c5
@ -164,7 +164,7 @@ func (self *OomParser) StreamOoms(outStream chan *OomInstance) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func callJournalctl() (io.ReadCloser, error) {
|
func callJournalctl() (io.ReadCloser, error) {
|
||||||
cmd := exec.Command("journalctl", "-f")
|
cmd := exec.Command("journalctl", "-k", "-f")
|
||||||
readcloser, err := cmd.StdoutPipe()
|
readcloser, err := cmd.StdoutPipe()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user