From d2ef7fa7c066a7fbda430adb690dffeb41f47013 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Fri, 6 Dec 2019 13:16:27 +0100 Subject: [PATCH] test: Rename logger --- tests/utils/cognito/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/utils/cognito/index.js b/tests/utils/cognito/index.js index b25efd46a..f95bfd42d 100644 --- a/tests/utils/cognito/index.js +++ b/tests/utils/cognito/index.js @@ -1,7 +1,7 @@ 'use strict'; const AWS = require('aws-sdk'); -const log = require('log').get('aws'); +const awsLog = require('log').get('aws'); const { region, persistentRequest } = require('../misc'); function createUserPool(name, config = {}) { @@ -31,7 +31,7 @@ function deleteUserPool(name) { } function findUserPoolByName(name) { - log.debug('find cognito user pool by name %s', name); + awsLog.debug('find cognito user pool by name %s', name); const cognito = new AWS.CognitoIdentityServiceProvider({ region }); const params = { @@ -44,7 +44,7 @@ function findUserPoolByName(name) { .listUserPools(params) .promise() .then(result => { - log.debug('cognito.listUserPools %j', result); + awsLog.debug('cognito.listUserPools %j', result); const matches = result.UserPools.filter(pool => pool.Name === name); if (matches.length) { return matches.shift(); @@ -64,7 +64,7 @@ function describeUserPool(userPoolId) { .describeUserPool({ UserPoolId: userPoolId }) .promise() .then(result => { - log.debug('cognito.describeUserPool %s %j', userPoolId, result); + awsLog.debug('cognito.describeUserPool %s %j', userPoolId, result); return result; }); }