Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Folkesson authored and Fredrik Folkesson committed Aug 23, 2018
1 parent b4c8e5e commit 00eda1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/EngineDiscovery.js
Expand Up @@ -20,6 +20,7 @@ const logger = require('./logger/Logger').get();
async function discover() {
try {
const engines = await this.OrchestrationClient.listEngines();
logger.info(`engines: : ${engines}`);
const keys = engines.map(engine => engine.key);
const keysToDelete = this.engineMap.difference(keys);
keysToDelete.forEach((key) => {
Expand Down
3 changes: 2 additions & 1 deletion src/orchestration/KubernetesClient.js
Expand Up @@ -67,8 +67,9 @@ class KubernetesClient {
} catch (error) {
logger.warn(`error from deployment: ${JSON.stringify(error)}`);
}

logger.info('before awaiting podpromise');
const pods = await podPromise;
logger.info(`after awaiting podpromise: ${pods}`);
const runningPods = pods.items.filter((pod) => {
if (pod.status.phase.toLowerCase() === 'running') {
logger.debug(`Valid engine pod info received: ${JSON.stringify(pod)}`);
Expand Down

0 comments on commit 00eda1e

Please sign in to comment.