Skip to content

Commit

Permalink
Set log level 2 by default
Browse files Browse the repository at this point in the history
We are eating meaningful errors at 0, and we can't change the
public signature of the image at this point. Like many processes,
we should default to a higher log level here.

We also broke --help on the main binary, fix that.
  • Loading branch information
smarterclayton committed Apr 6, 2020
1 parent a94e05b commit aee2b3d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions cmd/openshift-router/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ func main() {
logFlags := flag.FlagSet{}
klog.InitFlags(&logFlags)
cmd.PersistentFlags().AddGoFlagSet(&logFlags)
if err := cmd.ParseFlags(os.Args); err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)
}

if err := cmd.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
Expand Down
2 changes: 1 addition & 1 deletion images/router/haproxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ EXPOSE 80 443
WORKDIR /var/lib/haproxy/conf
ENV TEMPLATE_FILE=/var/lib/haproxy/conf/haproxy-config.template \
RELOAD_SCRIPT=/var/lib/haproxy/reload-haproxy
ENTRYPOINT ["/usr/bin/openshift-router"]
ENTRYPOINT ["/usr/bin/openshift-router", "--v=2"]
2 changes: 1 addition & 1 deletion images/router/haproxy/Dockerfile.rhel
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ EXPOSE 80 443
WORKDIR /var/lib/haproxy/conf
ENV TEMPLATE_FILE=/var/lib/haproxy/conf/haproxy-config.template \
RELOAD_SCRIPT=/var/lib/haproxy/reload-haproxy
ENTRYPOINT ["/usr/bin/openshift-router"]
ENTRYPOINT ["/usr/bin/openshift-router", "--v=2"]

0 comments on commit aee2b3d

Please sign in to comment.