Make build timestamp parsing errors clearer (#929)
This commit is contained in:
parent
68419cc024
commit
1ffa289d39
@ -93,7 +93,7 @@ func (r *runtime) run(events <-chan Event) {
|
||||
// parse returned response to timestamp
|
||||
updateTimeStamp, err := strconv.ParseInt(event.Version, 10, 64)
|
||||
if err != nil {
|
||||
log.Debugf("Runtime error parsing update build time: %v", err)
|
||||
log.Debugf("Runtime error parsing build time for %s: %v", event.Service, err)
|
||||
continue
|
||||
}
|
||||
buildTime := time.Unix(updateTimeStamp, 0)
|
||||
|
@ -157,7 +157,7 @@ func (k *kubernetes) List() ([]*runtime.Service, error) {
|
||||
for _, service := range deployments.Items {
|
||||
buildTime, err := time.Parse(time.RFC3339, service.Metadata.Annotations["build"])
|
||||
if err != nil {
|
||||
log.Debugf("Runtime error parsing build time: %v", err)
|
||||
log.Debugf("Runtime error parsing build time for %s: %v", service.Metadata.Name, err)
|
||||
continue
|
||||
}
|
||||
// add the service to the list of services
|
||||
|
Loading…
Reference in New Issue
Block a user