diff --git a/mock/mock.ts b/mock/mock.ts index d80208c..c3592d2 100644 --- a/mock/mock.ts +++ b/mock/mock.ts @@ -27,6 +27,7 @@ export interface Config { Mode: string; } export function NewContext(conf: Config) { + console.log("Keploy running in: ",process.env.KEPLOY_MODE," mode"); let mode = MODE_TEST, path = conf !== undefined && conf.Path !== undefined ? conf.Path : ""; @@ -36,7 +37,6 @@ export function NewContext(conf: Config) { } catch (err) { console.log("Failed to get the path of current directory"); console.log(err); - console.log("Keploy mode:",process.env.KEPLOY_MODE) } } else if (path[0] !== "/") { try { @@ -44,7 +44,6 @@ export function NewContext(conf: Config) { } catch (err) { console.log("Failed to get the absolute path from relative conf.path"); console.log(err); - console.log("Keploy mode:",process.env.KEPLOY_MODE) } } path += "/mocks"; diff --git a/src/client.ts b/src/client.ts index ca26e26..b41cb82 100644 --- a/src/client.ts +++ b/src/client.ts @@ -142,7 +142,6 @@ export default class HttpClient { await http(options); } catch (error) { console.log(error); - console.log("Keploy mode:",process.env.KEPLOY_MODE); } } } diff --git a/src/keploy.ts b/src/keploy.ts index db975df..3624335 100644 --- a/src/keploy.ts +++ b/src/keploy.ts @@ -76,6 +76,7 @@ export default class Keploy { this.responses = {}; this.dependencies = {}; this.mocks = {}; + console.log("Keploy running in: ",process.env.KEPLOY_MODE," mode"); } validateServerConfig({ @@ -132,7 +133,7 @@ export default class Keploy { async runTests() { if (process.env.KEPLOY_MODE == "test") { - console.log("test starting in " + this.appConfig.delay + "s" + " KEPLOY_MODE: " + process.env.KEPLOY_MODE ); + console.log("test starting in " + this.appConfig.delay + "s"); setTimeout(async () => { await this.test(); }, this.appConfig.delay * 1000); @@ -241,8 +242,6 @@ export default class Keploy { testId, " }, { total tests: ", totalTests, - " },{ Keploy mode:", - process.env.KEPLOY_MODE, " }" ); let pass = true; @@ -278,9 +277,7 @@ export default class Keploy { if (err !== null) { console.error( "failed to call test method of keploy. error: ", - err, - "Keploy mode:", - process.env.KEPLOY_MODE, + err ); }