Skip to content

Commit

Permalink
test: Rename logger
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Dec 6, 2019
1 parent 34d8f60 commit a0fdd05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/utils/cognito/index.js
Original file line number Diff line number Diff line change
@@ -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 = {}) {
Expand Down Expand Up @@ -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 = {
Expand All @@ -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();
Expand All @@ -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;
});
}
Expand Down

0 comments on commit a0fdd05

Please sign in to comment.