mirror of
https://github.com/dadosfera/maestro.git
synced 2026-08-31 19:58:21 +00:00
FIX: suppressing health check not authenticated log
This commit is contained in:
@@ -123,7 +123,11 @@ export class AuthenticationGuard
|
||||
jwt.verify(accessToken, pemValue);
|
||||
accessTokenPayload = accessTokenDecoded.payload;
|
||||
} catch (err) {
|
||||
this.logger.log('Unable to verify duc access token\n' + err.stack);
|
||||
// only log if it's not a health check request
|
||||
if (`${request.method} ${request.route.path}` !== 'GET /health') {
|
||||
this.logger.log('Unable to verify duc access token\n' + err.stack);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user