-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(mock.ts, keploy.ts, client.ts): Adding Keploy Mode in logs to no… #48
base: main
Are you sure you want to change the base?
Conversation
Hi @Hermione2408, we just need to log mode only once which could be from src/keploy.go and mock/mock.go This console statements can be in the constructor of Keploy class. |
0085783
to
1278a4f
Compare
mock/mock.ts
Outdated
@@ -27,6 +27,7 @@ export interface Config { | |||
Mode: string; | |||
} | |||
export function NewContext(conf: Config) { | |||
console.log("Keploy running in: ",process.env.KEPLOY_MODE," mode"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please place this log statement after this because here we are considering mode either from env variable or conf.mode parameter. Also log value of "mode" in log statement instead of process.env
…tify user Adding Keploy mode in logs to notify user in which mode keploy is running whether it is record, test, off feat #45 Signed-off-by: Hermione Dadheech <[email protected]>
feat #45 Signed-off-by: Hermione Dadheech <[email protected]>
feat #45 Signed-off-by: Hermione Dadheech <[email protected]>
e8a3620
to
1ad2d59
Compare
LGTM. Hey @Hermione2408 , Please add link to this PR in GSOC/2023 Task List . |
Done. |
Adding Keploy mode in logs to notify user in which mode keploy is running whether it is record, test, off
feat keploy/keploy#390
Closes: keploy/keploy#390