Update pkg/task/metrics_store.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -67,12 +67,9 @@ func (s *FileMetricsStore) Append(ctx context.Context, taskName string, run mode
|
||||
return fmt.Errorf("write metrics file: %w", err)
|
||||
}
|
||||
|
||||
if s.logger == nil {
|
||||
return fmt.Errorf("logger is nil")
|
||||
if s.logger != nil {
|
||||
s.logger.Info("task metrics persisted", "path", s.path, "task", taskName, "run_id", run.RunID)
|
||||
}
|
||||
|
||||
s.logger.Info("task metrics persisted", "path", s.path, "task", taskName, "run_id", run.RunID)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user