Only mirror messages, not whole error log

This commit is contained in:
Arthur Barr
2018-02-06 12:00:05 +00:00
parent cbfa24a267
commit 48185668af

View File

@@ -228,8 +228,10 @@ func doMain() error {
} else {
f = f + ".LOG"
mirrorLifecycle, err = mirrorLog(f, func(msg string) {
// Log the message, so we get a timestamp etc.
log.Println(msg)
if strings.HasPrefix(msg, "AMQ") {
// Log the message, so we get a timestamp etc.
log.Println(msg)
}
})
}
if err != nil {