refactor(core): Convert verbose to debug logs (#10574)

This commit is contained in:
Iván Ovejero
2024-08-28 09:32:53 +02:00
committed by GitHub
parent ab9835126e
commit bc958be93b
54 changed files with 68 additions and 74 deletions

View File

@@ -90,7 +90,7 @@ export class OAuth1CredentialController extends AbstractOAuthController {
decryptedDataOriginal.csrfSecret = csrfSecret;
await this.encryptAndSaveData(credential, decryptedDataOriginal);
this.logger.verbose('OAuth1 authorization successful for new credential', {
this.logger.debug('OAuth1 authorization successful for new credential', {
userId: req.user.id,
credentialId: credential.id,
});
@@ -170,7 +170,7 @@ export class OAuth1CredentialController extends AbstractOAuthController {
await this.encryptAndSaveData(credential, decryptedDataOriginal);
this.logger.verbose('OAuth1 callback successful for new credential', {
this.logger.debug('OAuth1 callback successful for new credential', {
credentialId,
});
return res.render('oauth-callback');

View File

@@ -71,7 +71,7 @@ export class OAuth2CredentialController extends AbstractOAuthController {
const oAuthObj = new ClientOAuth2(oAuthOptions);
const returnUri = oAuthObj.code.getUri();
this.logger.verbose('OAuth2 authorization url created for credential', {
this.logger.debug('OAuth2 authorization url created for credential', {
userId: req.user.id,
credentialId: credential.id,
});
@@ -172,7 +172,7 @@ export class OAuth2CredentialController extends AbstractOAuthController {
delete decryptedDataOriginal.csrfSecret;
await this.encryptAndSaveData(credential, decryptedDataOriginal);
this.logger.verbose('OAuth2 callback successful for credential', {
this.logger.debug('OAuth2 callback successful for credential', {
credentialId,
});

View File

@@ -40,7 +40,7 @@ export class WorkflowStatisticsController {
if (workflow) {
next();
} else {
this.logger.verbose('User attempted to read a workflow without permissions', {
this.logger.warn('User attempted to read a workflow without permissions', {
workflowId,
userId: user.id,
});