Make 'qmgr' logs as default (#401)

* Required updates

* Update docker_api_test.go
This commit is contained in:
Avinash Ganesh
2023-02-08 16:34:10 +05:30
committed by GitHub Enterprise
parent 167ec03f04
commit b47ad7fde2
3 changed files with 11 additions and 11 deletions

View File

@@ -371,7 +371,7 @@ func getMQLogConsoleSource() string {
func isLogConsoleSourceValid() bool {
mqLogSource := getMQLogConsoleSource()
retValue := false
//If nothing is set, we will mirror all, so valid
//If nothing is set, we will mirror qmgr, so valid
if mqLogSource == "" {
return true
}
@@ -396,9 +396,14 @@ func isLogConsoleSourceValid() bool {
func checkLogSourceForMirroring(source string) bool {
logsrcs := getMQLogConsoleSource()
//Nothing set, this is when we mirror all
//Nothing set, this is when we mirror qmgr
if logsrcs == "" {
return true
if source == "qmgr" {
return true
} else {
return false
}
}
//Split the csv environment value so that we get an accurate comparison instead of a contains() check