fix: logs severity
This commit is contained in:
parent
3563a0b64a
commit
0762ed1127
4 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
})
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue