-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4dd59b5
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.
BTW @ribasushi I updated my code for all of these commits yesterday.
When I run CLI commands I see the color, but now with watch I lost all of the colors...
4dd59b5
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.
@stuberman sigh... there are two color specifications in this command flow:
lotus/cmd/lotus-storage-miner/main.go
Lines 84 to 88 in 88ac2eb
lotus/cmd/lotus-storage-miner/actor.go
Lines 391 to 395 in 88ac2eb
As a result
doesn't do what you want, while
will do so.
I don't think we can easily unify the flags because it will break for folks who do specify the flag... @magik6k would have to chime in.
As a general workflow that will work everywhere you can use the very code you commented on:
will do exactly what you want
4dd59b5
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.
Thanks for the quick response.
My point is that after these commits when I use
watch
the colors no longer show up regardless of the color flag4dd59b5
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.
But now when I prepend
GOLOG_LOG_FMT=color
everything looks good again4dd59b5
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.
This is by design
This is inaccurate: please look at the
--color
position carefully in the 2 examples here: 4dd59b5#commitcomment-53382350