fix: logs severity

This commit is contained in:
Karol Sójko 2023-12-22 14:42:41 +01:00
parent 3563a0b64a
commit 0762ed1127
No known key found for this signature in database
GPG key ID: C2F813669419D05F
4 changed files with 4 additions and 4 deletions

View file

@ -76,7 +76,7 @@ export abstract class AuthMiddleware extends BaseMiddleware {
response.locals.sharedVaultOwnerContext = decodedToken.shared_vault_owner_context
response.locals.readOnlyAccess = decodedToken.session?.readonly_access ?? false
if (response.locals.readOnlyAccess) {
this.logger.info('User operates on read-only access', {
this.logger.debug('User operates on read-only access', {
codeTag: 'AuthMiddleware',
userId: response.locals.user.uuid,
})

View file

@ -29,7 +29,7 @@ export class GRPCSyncingServerServiceProxy {
metadata.set('x-snjs-version', request.headers['x-snjs-version'] as string)
metadata.set('x-read-only-access', response.locals.readOnlyAccess ? 'true' : 'false')
if (response.locals.readOnlyAccess) {
this.logger.info('Syncing with read-only access', {
this.logger.debug('Syncing with read-only access', {
codeTag: 'GRPCSyncingServerServiceProxy',
userId: response.locals.user.uuid,
})

View file

@ -36,7 +36,7 @@ export class AuthenticationMethodResolver implements AuthenticationMethodResolve
}
const userUuid = userUuidOrError.getValue()
this.logger.info('User utilizing JWT authentication method.', {
this.logger.debug('User utilizing JWT authentication method.', {
userId: userUuid.value,
})

View file

@ -77,7 +77,7 @@ export class SyncingServer implements ISyncingServer {
const userUuid = call.metadata.get('x-user-uuid').pop() as string
const readOnlyAccess = call.metadata.get('x-read-only-access').pop() === 'true'
if (readOnlyAccess) {
this.logger.info('Syncing with read-only access', {
this.logger.debug('Syncing with read-only access', {
codeTag: 'SyncingServer',
userId: userUuid,
})