Istio: ERROR: logging before flag.Parse

Created on 13 Dec 2017  路  4Comments  路  Source: istio/istio

This message shows up in the Pilot logs:
ERROR: logging before flag.Parse: <log msg>

I wonder if this was accidentally introduced during some of the recent refactoring of the cmds. @nmittler?

Most helpful comment

FYI: mixer has a hack of suppressing this warning (see https://github.com/istio/istio/blob/master/mixer/cmd/mixs/cmd/root.go#L47), similar to a comment in the kubernetes issue.

Even if the entire pilot code base stops using glog, some dependencies (like kubernetes client library) might use it, which could cause the same problem.

All 4 comments

Sounds like a problem with glog?: https://github.com/kubernetes/kubernetes/issues/17162

i see a lot of those in pilot and pilot agent logs (only)

I'll be migrating pilot over to istio logging soon (https://github.com/istio/istio/issues/2174). I suspect this will be resolved then.

FYI: mixer has a hack of suppressing this warning (see https://github.com/istio/istio/blob/master/mixer/cmd/mixs/cmd/root.go#L47), similar to a comment in the kubernetes issue.

Even if the entire pilot code base stops using glog, some dependencies (like kubernetes client library) might use it, which could cause the same problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jilpansi picture jilpansi  路  4Comments

ebuono picture ebuono  路  3Comments

PigNatovsky picture PigNatovsky  路  3Comments

morvencao picture morvencao  路  4Comments

ZackButcher picture ZackButcher  路  4Comments