From 520bdb9799cf598a707fe47ce8082a3b558e6372 Mon Sep 17 00:00:00 2001 From: Ganesh Vanahalli Date: Thu, 28 Sep 2023 11:53:21 -0500 Subject: [PATCH] Update header_reader.go --- util/headerreader/header_reader.go | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/util/headerreader/header_reader.go b/util/headerreader/header_reader.go index 2bd8f198ad..75eb145a4b 100644 --- a/util/headerreader/header_reader.go +++ b/util/headerreader/header_reader.go @@ -312,18 +312,10 @@ func (s *HeaderReader) logIfHeaderIsOld() { headerTime := time.Since(l1Timetamp) if headerTime >= s.config().OldHeaderTimeout { s.setError(fmt.Errorf("latest header is at least %v old", headerTime)) - // Upgrade the log level from warn to error when losing connection to L1 for too long - if headerTime >= DefaultConfig.OldHeaderTimeout { - log.Error( - "latest L1 block is old", "l1Block", storedHeader.Number, - "l1Timestamp", l1Timetamp, "age", headerTime, - ) - } else { - log.Warn( - "latest L1 block is old", "l1Block", storedHeader.Number, - "l1Timestamp", l1Timetamp, "age", headerTime, - ) - } + log.Error( + "latest L1 block is old", "l1Block", storedHeader.Number, + "l1Timestamp", l1Timetamp, "age", headerTime, + ) } }