Keep run logs opaque and streamline transfers
This commit is contained in:
+2
-2
@@ -60,7 +60,7 @@ func WithMetricCollector(collector MetricCollector) LifecycleExecutorOption {
|
||||
|
||||
func (worker *Worker) reportMetricsDegraded(ctx context.Context, trigger string) {
|
||||
if err := worker.ReportMetricsOnce(ctx); err != nil {
|
||||
log.Printf("RUN phase=metrics status=degraded trigger=%s error=%s", safeOptional(trigger), RedactText(err.Error()))
|
||||
log.Printf("RUN phase=metrics status=degraded trigger=%s error=%s", safeOptional(trigger), err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ func (worker *Worker) ReportMetricsOnce(ctx context.Context) error {
|
||||
sample.MemoryPercent = utilization.MemoryPercent
|
||||
sample.DiskPercent = utilization.DiskPercent
|
||||
if collectErr != nil {
|
||||
log.Printf("RUN phase=metrics status=utilization_unavailable error=%s", RedactText(collectErr.Error()))
|
||||
log.Printf("RUN phase=metrics status=utilization_unavailable error=%s", collectErr.Error())
|
||||
}
|
||||
}
|
||||
reportCtx, cancel := context.WithTimeout(ctx, metricReportTimeout)
|
||||
|
||||
Reference in New Issue
Block a user