From 473cf73454820941c5aa82d27a1fe6189636f560 Mon Sep 17 00:00:00 2001 From: James MacMahon Date: Wed, 10 May 2023 10:59:05 -0400 Subject: [PATCH] eprintln -> error --- agent/src/main.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/agent/src/main.rs b/agent/src/main.rs index 4ff78688d..70b309e8e 100644 --- a/agent/src/main.rs +++ b/agent/src/main.rs @@ -880,9 +880,9 @@ fn worker( } } _ => { - eprintln!( - "worker got unexpected region state: {:?}", - r + error!( + log, + "worker got unexpected region state: {:?}", r ); std::process::exit(1); } @@ -934,7 +934,8 @@ fn worker( } _ => { - eprintln!( + error!( + log, "worker got unexpected running snapshot state: {:?}", rs, );