Clean up commented code
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user