File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import (
19
19
"path/filepath"
20
20
"time"
21
21
22
+ "github.com/coder/coder/buildinfo"
22
23
"github.com/coder/coder/provisioner/echo"
23
24
24
25
"github.com/briandowns/spinner"
@@ -29,6 +30,7 @@ import (
29
30
"github.com/prometheus/client_golang/prometheus/promhttp"
30
31
"github.com/spf13/cobra"
31
32
sdktrace "go.opentelemetry.io/otel/sdk/trace"
33
+ "golang.org/x/mod/semver"
32
34
"golang.org/x/oauth2"
33
35
xgithub "golang.org/x/oauth2/github"
34
36
"golang.org/x/xerrors"
@@ -98,7 +100,8 @@ func server() *cobra.Command {
98
100
Short : "Start a Coder server" ,
99
101
RunE : func (cmd * cobra.Command , args []string ) error {
100
102
logger := slog .Make (sloghuman .Sink (os .Stderr ))
101
- if verbose {
103
+ buildModeDev := semver .Prerelease (buildinfo .Version ()) == "-devel"
104
+ if verbose || buildModeDev {
102
105
logger = logger .Leveled (slog .LevelDebug )
103
106
}
104
107
You can’t perform that action at this time.
0 commit comments