File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -30,21 +30,19 @@ Break free from the terminal and stream your logs in any format to a web UI
30
30
where you can filter and browse well formatted application output.
31
31
` ,
32
32
Run : func (cmd * cobra.Command , args []string ) {
33
- },
34
- PersistentPreRun : func (cmd * cobra.Command , args []string ) {
35
- parseConfig (cmd )
36
-
37
- verbose , _ := cmd .Flags ().GetBool ("verbose" )
38
- utils .SetLoggerLevel (verbose )
39
- },
40
- PersistentPostRun : func (cmd * cobra.Command , args []string ) {
41
33
// by default, `stdin` mode will run if [command] is not provided
42
34
if len (args ) == 0 {
43
35
utils .Logger .Info ("Listen to stdin (from pipe)" )
44
36
go modes .ConsumeStdin (http .Ch )
45
37
startWebServer (cmd )
46
38
}
47
39
},
40
+ PersistentPreRun : func (cmd * cobra.Command , args []string ) {
41
+ parseConfig (cmd )
42
+
43
+ verbose , _ := cmd .Flags ().GetBool ("verbose" )
44
+ utils .SetLoggerLevel (verbose )
45
+ },
48
46
}
49
47
50
48
var listenStdCmd = & cobra.Command {
You can’t perform that action at this time.
0 commit comments