File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/authentication/logging Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,7 @@ class ExternalLoggerWrapper{
1313 }
1414
1515 isLoggerEmpty ( ) {
16- if ( this . extLogger === undefined )
17- return false ;
18- return true ;
16+ return typeof this . extLogger === 'undefined'
1917 }
2018}
2119
Original file line number Diff line number Diff line change @@ -128,8 +128,8 @@ class LogConfiguration {
128128 this . hasExternalLogger = false ;
129129 }
130130
131- if ( ( typeof ( this . externalLogger ) === "object" && ! ( this . externalLogger instanceof ExternalLoggerWrapper ) )
132- || this . externalLogger === undefined || ! ( this . externalLogger . isLoggerEmpty ( ) ) ) {
131+ if ( this . hasExternalLogger == true && ( ( typeof ( this . externalLogger ) === "object" && ! ( this . externalLogger instanceof ExternalLoggerWrapper ) )
132+ || this . externalLogger === undefined || ( this . externalLogger . isLoggerEmpty ( ) ) ) ) {
133133 ApiException . LoggerException ( "No valid external logger object found. Turning off external logger flag." )
134134 this . hasExternalLogger = false ;
135135 }
You can’t perform that action at this time.
0 commit comments