main: Use cmdlog API to enable timestamps
This commit is contained in:
parent
c865aaebeb
commit
7565328e19
3 changed files with 4 additions and 2 deletions
2
go.mod
generated
2
go.mod
generated
|
|
@ -23,7 +23,7 @@ require (
|
|||
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2
|
||||
gonum.org/v1/plot v0.12.0
|
||||
nhooyr.io/websocket v1.8.7
|
||||
oss.terrastruct.com/cmdlog v0.0.0-20221201090547-ab9bd6ef8f45
|
||||
oss.terrastruct.com/cmdlog v0.0.0-20221201094159-d559c1f3b9ed
|
||||
oss.terrastruct.com/diff v1.0.2-0.20221116222035-8bf4dd3ab541
|
||||
oss.terrastruct.com/xcontext v0.0.0-20221018000442-50fdafb12f4f
|
||||
oss.terrastruct.com/xdefer v0.0.0-20221017222355-6f3b6e4d1557
|
||||
|
|
|
|||
2
go.sum
generated
2
go.sum
generated
|
|
@ -802,6 +802,8 @@ oss.terrastruct.com/cmdlog v0.0.0-20221201084049-dd840835d2eb h1:6PiU5eI37Yb6xmg
|
|||
oss.terrastruct.com/cmdlog v0.0.0-20221201084049-dd840835d2eb/go.mod h1:xBRUvQjl+yaEs0WAc7pkZDEnbFYt6nUyblnb+0g+TzM=
|
||||
oss.terrastruct.com/cmdlog v0.0.0-20221201090547-ab9bd6ef8f45 h1:WDmv4/00L/SZX4EtHX1eafCBg1xYDtOWnbCoSC2cJJ8=
|
||||
oss.terrastruct.com/cmdlog v0.0.0-20221201090547-ab9bd6ef8f45/go.mod h1:xBRUvQjl+yaEs0WAc7pkZDEnbFYt6nUyblnb+0g+TzM=
|
||||
oss.terrastruct.com/cmdlog v0.0.0-20221201094159-d559c1f3b9ed h1:EaWSHXvs6BO+t562A0AkpmLXhb31NXuPiBiblHZhEVA=
|
||||
oss.terrastruct.com/cmdlog v0.0.0-20221201094159-d559c1f3b9ed/go.mod h1:xBRUvQjl+yaEs0WAc7pkZDEnbFYt6nUyblnb+0g+TzM=
|
||||
oss.terrastruct.com/diff v1.0.2-0.20221116222035-8bf4dd3ab541 h1:I9B1O1IJ6spivIQxbFRZmbhAwVeLwrcQRR1JbYUOvrI=
|
||||
oss.terrastruct.com/diff v1.0.2-0.20221116222035-8bf4dd3ab541/go.mod h1:ags2QDy/T6jr69hT6bpmAmhr2H98n9o8Atf3QlUJPiU=
|
||||
oss.terrastruct.com/xcontext v0.0.0-20221018000442-50fdafb12f4f h1:7voRCwKM7TZkTo9u7hj+uV/zXoVB8czWrTq6MVIh3dg=
|
||||
|
|
|
|||
2
main.go
2
main.go
|
|
@ -149,7 +149,7 @@ func run(ctx context.Context, ms *xmain.State) (err error) {
|
|||
if inputPath == "-" {
|
||||
return xmain.UsageErrorf("-w[atch] cannot be combined with reading input from stdin")
|
||||
}
|
||||
ms.Env.Setenv("LOG_TIMESTAMPS", "1")
|
||||
ms.Log.SetTS(true)
|
||||
w, err := newWatcher(ctx, ms, watcherOpts{
|
||||
layoutPlugin: plugin,
|
||||
themeID: *themeFlag,
|
||||
|
|
|
|||
Loading…
Reference in a new issue