Always print file diagnostics before/after crtmqdir if DEBUG=true

This commit is contained in:
Luke J Powlett
2020-03-09 16:07:27 +00:00
parent 2fae0e2258
commit c1cbb62ee1
2 changed files with 39 additions and 34 deletions

View File

@@ -32,6 +32,8 @@ import (
// createDirStructure creates the default MQ directory structure under /var/mqm
func createDirStructure() error {
// log file diagnostics before and after crtmqdir if DEBUG=true
logDiagnostics()
out, rc, err := command.Run("/opt/mqm/bin/crtmqdir", "-f", "-a")
if err != nil {
if rc == 10 {
@@ -42,6 +44,7 @@ func createDirStructure() error {
}
}
log.Println("Created directory structure under /var/mqm")
logDiagnostics()
return nil
}