Skip to content

Commit

Permalink
Reduced log messages in case the default config has been loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterl committed Jan 12, 2024
1 parent a382255 commit b95866e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { IConfig } from "../model/config.interface";
@Injectable()
export class DresBackendUnauthorisedHandlerService implements HttpInterceptor {

private noConfigWarningSentFlag = false;

constructor(private injector: Injector) {
console.log("Interceptor ctor")
}
Expand All @@ -30,7 +32,10 @@ export class DresBackendUnauthorisedHandlerService implements HttpInterceptor {
}
}))
}else if(!this.config) {
console.warn("No config present, won't work")
if(!this.noConfigWarningSentFlag){
this.noConfigWarningSentFlag = true;
console.warn("No config present, won't work")
}
// in case we do not have a config loaded and its not the first config call, then we just stop working
return next.handle(req)
}else{
Expand Down

0 comments on commit b95866e

Please sign in to comment.