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

Some fixes #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gododir/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func tasks(p *do.Project) {
})

p.Task("isolate", do.S{"build"}, func(c *do.Context) {
c.Bash("LOGXI=* LOGXI_FORMAT=fit,maxcol=80,t=04:05.000,context=2 demo", do.M{"$in": "v1/cmd/demo"})
c.Bash("LOGXI=* LOGXI_FORMAT=maxcol=80,t=04:05.000,context=2 demo", do.M{"$in": "v1/cmd/demo"})
})

p.Task("install", nil, func(c *do.Context) {
Expand Down
2 changes: 2 additions & 0 deletions v1/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ func ProcessLogxiColorsEnv(env string) {
} else if colors == "*=off" {
// disable all colors
disableColors = true
} else {
disableColors = false //overriding value set when isTerminal is false
}
theme = parseTheme(colors)
}
2 changes: 1 addition & 1 deletion v1/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func setDefaults(isTerminal bool) {

if isTerminal {
defaultLogxiEnv = "*=WRN"
defaultLogxiFormatEnv = "happy,fit,maxcol=80,t=15:04:05.000000,context=-1"
defaultLogxiFormatEnv = "happy,maxcol=80,t=15:04:05.000000,context=-1"
defaultFormat = FormatHappy
defaultLevel = LevelWarn
defaultTimeFormat = "15:04:05.000000"
Expand Down