Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Hermione2408
Copy link
Member

@Hermione2408 Hermione2408 commented Feb 25, 2023

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

@re-Tick
Copy link
Contributor

re-Tick commented Mar 1, 2023

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.

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");
Copy link
Contributor

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]>
@re-Tick
Copy link
Contributor

re-Tick commented Mar 3, 2023

LGTM. Hey @Hermione2408 , Please add link to this PR in GSOC/2023 Task List .

@Hermione2408
Copy link
Member Author

Done.

@re-Tick re-Tick added good first issue Good for newcomers Accepted PR is reviewed and Accepted labels Mar 6, 2023
@Sonichigo Sonichigo added the Don't Merge Not to be merged until gsoc results label Mar 6, 2023
@re-Tick re-Tick added Accepted PR is reviewed and Accepted and removed Accepted PR is reviewed and Accepted labels Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted PR is reviewed and Accepted Don't Merge Not to be merged until gsoc results good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature]: need to log the keploy mode
3 participants