Check for l.logger being nil before attempting to log remotely. (#625)
Check for l.logger being nil before attempting to log remotely. (#625)

We currently check for l.logc being nil, but l.logger is better check, as it's possible that log client (l.logc) is not nil, but l.logger has not been initialized yet.

Ref: https://github.com/google/cloudprober/issues/616#issuecomment-879593718
PiperOrigin-RevId: 384639303
google/cloudprober,google/cloudprober,cloudprober/cloudprober,cloudprober/cloudprober,cloudprober/cloudprober