|
@@ -87,7 +87,7 @@ func initGCP() {
|
|
// These will fail on instances if the metadata service is
|
|
// These will fail on instances if the metadata service is
|
|
// down or the client is compiled with an API version that
|
|
// down or the client is compiled with an API version that
|
|
// has been removed. Since these are not vital, let's ignore
|
|
// has been removed. Since these are not vital, let's ignore
|
|
- // them and make their fields in the dockeLogEntry ,omitempty
|
|
|
|
|
|
+ // them and make their fields in the dockerLogEntry ,omitempty
|
|
projectID, _ = metadata.ProjectID()
|
|
projectID, _ = metadata.ProjectID()
|
|
zone, _ = metadata.Zone()
|
|
zone, _ = metadata.Zone()
|
|
instanceName, _ = metadata.InstanceName()
|
|
instanceName, _ = metadata.InstanceName()
|
|
@@ -111,7 +111,7 @@ func New(info logger.Info) (logger.Logger, error) {
|
|
project = projectID
|
|
project = projectID
|
|
}
|
|
}
|
|
if project == "" {
|
|
if project == "" {
|
|
- return nil, fmt.Errorf("No project was specified and couldn't read project from the meatadata server. Please specify a project")
|
|
|
|
|
|
+ return nil, fmt.Errorf("No project was specified and couldn't read project from the metadata server. Please specify a project")
|
|
}
|
|
}
|
|
|
|
|
|
// Issue #29344: gcplogs segfaults (static binary)
|
|
// Issue #29344: gcplogs segfaults (static binary)
|