Skip to content

Commit f48b714

Browse files
author
Ari Zellner
committed
--logtostderr by default
1 parent 84e038a commit f48b714

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

README.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ use the configuration that Kubernetes mounts automatically in the pod file
2424
system. So in most cases this command line option won't have to be explicitly
2525
included.
2626

27-
The `--logtostderr` option is very convenient when running the auto-heal
28-
service, both in development and production environments.
29-
3027
Assuming that you want to have your own `my.yml` configuration file a typical
3128
command line will be the following:
3229

@@ -349,7 +346,7 @@ files that are inside the `examples` directory. For example, to simulate the
349346
send the alert notification:
350347

351348
```
352-
$ autoheal server --config-file=my.yml --logtostderr
349+
$ autoheal server --config-file=my.yml
353350
$ curl --data @examples/node-down-alert.json http://localhost:9099/alerts
354351
```
355352

cmd/autoheal/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ var rootCmd = &cobra.Command{
3333

3434
func init() {
3535
rootCmd.AddCommand(serverCmd)
36+
flag.Set("logtostderr", "true")
3637
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
3738
}
3839

hack/run-dev.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ else
1515
fi
1616

1717
# Run autoheal server using dev defaults
18-
"${binary}" server --config-file=examples/autoheal-dev.yml --logtostderr
18+
"${binary}" server --config-file=examples/autoheal-dev.yml

template.yml

-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ objects:
199199
args:
200200
- server
201201
- --config-file=/etc/autoheal/config.d
202-
- --logtostderr
203202

204203
- apiVersion: v1
205204
kind: Service

0 commit comments

Comments
 (0)