refactor(core): Convert verbose to debug logs (#10574)
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user