mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-23 10:09:08 +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);
|
jwt.verify(accessToken, pemValue);
|
||||||
accessTokenPayload = accessTokenDecoded.payload;
|
accessTokenPayload = accessTokenDecoded.payload;
|
||||||
} catch (err) {
|
} 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user