@@ -93,13 +93,13 @@ RangeScan::RangeScan(
9393 }
9494 }
9595
96- EP_LOG_INFO (" {}: {} created. cid:{}, mode:{}{}{}" ,
97- cookie.getConnectionId (),
98- getLogId (),
99- this ->start .getDocKey ().getCollectionID (),
100- keyOnly == cb::rangescan::KeyOnly::Yes ? " keys" : " values" ,
101- std::string_view{snapshotLog.data (), snapshotLog.size ()},
102- std::string_view{samplingLog.data (), samplingLog.size ()});
96+ EP_LOG_DEBUG (" {}: {} created. cid:{}, mode:{}{}{}" ,
97+ cookie.getConnectionId (),
98+ getLogId (),
99+ this ->start .getDocKey ().getCollectionID (),
100+ keyOnly == cb::rangescan::KeyOnly::Yes ? " keys" : " values" ,
101+ std::string_view{snapshotLog.data (), snapshotLog.size ()},
102+ std::string_view{samplingLog.data (), samplingLog.size ()});
103103}
104104
105105RangeScan::RangeScan (cb::rangescan::Id id, KVStoreScanTracker& resourceTracker)
@@ -134,7 +134,13 @@ RangeScan::~RangeScan() {
134134
135135 auto cs = *continueState.rlock ();
136136
137- EP_LOG_INFO (
137+ auto level = spdlog::level::level_enum::debug;
138+ if (cs.finalStatus != cb::engine_errc::range_scan_complete) {
139+ level = spdlog::level::level_enum::warn;
140+ }
141+
142+ EP_LOG_FMT (
143+ level,
138144 " {} finished in {} status:{}, after {}ms, continued:{}, keys:{}{}" ,
139145 getLogId (),
140146 cs.state ,
0 commit comments