Clean up commented code

This commit is contained in:
Arthur Barr
2018-02-20 14:44:24 +00:00
parent 05d1c6f0de
commit 3600841e2b
4 changed files with 0 additions and 59 deletions

View File

@@ -82,7 +82,6 @@ func mirrorLogs(ctx context.Context, wg *sync.WaitGroup, name string, fromStart
return nil, err
}
f := filepath.Join(mqini.GetErrorLogDirectory(qm), "AMQERR01.json")
// f := fmt.Sprintf("/var/mqm/qmgrs/\"%v\"/errors/AMQERR01.json", name)
if jsonLogs() {
return mirrorLog(ctx, wg, f, fromStart, mirrorToStdout)
}

View File

@@ -61,14 +61,6 @@ func mirrorAvailableMessages(f *os.File, mf mirrorFunc) {
for scanner.Scan() {
t := scanner.Text()
mf(t)
// if strings.HasPrefix(t, "{") {
// // Assume JSON, so just print it
// fmt.Fprintln(w, t)
// } else if strings.HasPrefix(t, "AMQ") {
// // Only print MQ messages with AMQnnnn codes
// log.Println(t)
// //fmt.Fprintln(w, t)
// }
count++
}
log.Debugf("Mirrored %v log entries", count)