@@ -43,7 +43,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
43
43
prometheusAddress string
44
44
debugAddress string
45
45
slogHumanPath string
46
- slogJsonPath string
46
+ slogJSONPath string
47
47
slogStackdriverPath string
48
48
)
49
49
cmd := & clibase.Cmd {
@@ -76,11 +76,9 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
76
76
77
77
case "/dev/stdout" :
78
78
sinks = append (sinks , sinkFn (inv .Stdout ))
79
- break
80
79
81
80
case "/dev/stderr" :
82
81
sinks = append (sinks , sinkFn (inv .Stderr ))
83
- break
84
82
85
83
default :
86
84
fi , err := os .OpenFile (loc , os .O_WRONLY | os .O_CREATE | os .O_APPEND , 0o644 )
@@ -96,7 +94,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
96
94
if err := addSinkIfProvided (sloghuman .Sink , slogHumanPath ); err != nil {
97
95
return xerrors .Errorf ("add human sink: %w" , err )
98
96
}
99
- if err := addSinkIfProvided (slogjson .Sink , slogJsonPath ); err != nil {
97
+ if err := addSinkIfProvided (slogjson .Sink , slogJSONPath ); err != nil {
100
98
return xerrors .Errorf ("add json sink: %w" , err )
101
99
}
102
100
if err := addSinkIfProvided (slogstackdriver .Sink , slogStackdriverPath ); err != nil {
@@ -350,7 +348,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
350
348
Flag : "log-json" ,
351
349
Env : "CODER_AGENT_LOGGING_JSON" ,
352
350
Default : "" ,
353
- Value : clibase .StringOf (& slogJsonPath ),
351
+ Value : clibase .StringOf (& slogJSONPath ),
354
352
},
355
353
{
356
354
Name : "Stackdriver Log Location" ,
0 commit comments