Skip to content

Improve log in cmd service dev#413

Merged
antho1404 merged 6 commits intodevfrom
improve-log-in-cmd
Sep 1, 2018
Merged

Improve log in cmd service dev#413
antho1404 merged 6 commits intodevfrom
improve-log-in-cmd

Conversation

@NicolasMahe
Copy link
Copy Markdown
Member

In command service dev:

antho1404
antho1404 previously approved these changes Aug 30, 2018
Comment thread cmd/service/dev.go Outdated
}
}

func formatJSON(data string) string {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@NicolasMahe
Copy link
Copy Markdown
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
Copy Markdown
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