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

Improve log in cmd service dev #413

Merged
merged 6 commits into from
Sep 1, 2018
Merged

Improve log in cmd service dev #413

merged 6 commits into from
Sep 1, 2018

Conversation

NicolasMahe
Copy link
Member

In command service dev:

antho1404
antho1404 previously approved these changes Aug 30, 2018
}
}

func formatJSON(data string) string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to utils?

Missing docs.

s/formatJSON/colorJSON/ ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In which utils your suggest to move it? service/utils? cmd/utils?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmd/utils

@krhubert
Copy link
Contributor

Pls use logrus. Let's keep only one logging package in the app.

@NicolasMahe
Copy link
Member Author

NicolasMahe commented Aug 31, 2018

We will continue to use logrus for log in the core/daemon.

I switch back to log in the command service.dev for cosmetic improvements only.
Any other commands are using fmt, not logrus.

I remember we agree that CLI (cmds) will not use logrus.

@NicolasMahe
Copy link
Member Author

Modification done, @mesg-foundation/core please review

@antho1404 antho1404 merged commit 060812c into dev Sep 1, 2018
@NicolasMahe NicolasMahe deleted the improve-log-in-cmd branch September 2, 2018 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log of command dev are missing space between word
4 participants