Skip to content

Commit ac93e3a

Browse files
authored
Merge pull request #7043 from topcoder-platform/promisify-fix
fix: added more debug logs
2 parents b03d769 + 8467218 commit ac93e3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/services/contentful.js

+3
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ export function getSpaceId(spaceName) {
223223
* @param {Boolean} preview
224224
*/
225225
export function getService(spaceName, environment, preview) {
226+
console.log('getService');
226227
if (!services) {
227228
services = initServiceInstances();
228229
}
@@ -235,6 +236,8 @@ export function getService(spaceName, environment, preview) {
235236
if (!services[name][env]) {
236237
throw new Error(`environment : '${env}' is not configured for space : '${name}.`);
237238
}
239+
238240
const service = services[name][env];
241+
console.log(service, 'service debug');
239242
return preview ? service.previewService : service.cdnService;
240243
}

0 commit comments

Comments
 (0)