Make 'qmgr' logs as default (#401)
* Required updates * Update docker_api_test.go
This commit is contained in:
committed by
GitHub Enterprise
parent
167ec03f04
commit
b47ad7fde2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user