File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -373,6 +373,11 @@ func makeComposeLogsCmd() *cobra.Command {
373
373
var raw , _ = cmd .Flags ().GetBool ("raw" )
374
374
var since , _ = cmd .Flags ().GetString ("since" )
375
375
var utc , _ = cmd .Flags ().GetBool ("utc" )
376
+ var verbose , _ = cmd .Flags ().GetBool ("verbose" )
377
+
378
+ if ! cmd .Flags ().Changed ("verbose" ) {
379
+ verbose = true // default verbose for explicit tail command
380
+ }
376
381
377
382
if utc {
378
383
os .Setenv ("TZ" , "" ) // used by Go's "time" package, see https://pkg.go.dev/time#Location
@@ -398,7 +403,7 @@ func makeComposeLogsCmd() *cobra.Command {
398
403
Etag : etag ,
399
404
Since : ts ,
400
405
Raw : raw ,
401
- Verbose : true , // always verbose for explicit tail command
406
+ Verbose : verbose ,
402
407
}
403
408
404
409
loader := configureLoader (cmd )
You can’t perform that action at this time.
0 commit comments