Skip to content

Commit

Permalink
c/partition_manager: wrapped shutdown error log with vlog
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Maslanka <michal@redpanda.com>
  • Loading branch information
mmaslankaprv committed Jan 26, 2024
1 parent 1367cb9 commit d0ee2f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/v/cluster/partition_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ void partition_manager::check_partitions_shutdown_state() {
const auto now = ss::lowres_clock::now();
for (auto& state : _partitions_shutting_down) {
if (state.last_update_timestamp < now - _partition_shutdown_timeout()) {
clusterlog.error(
vlog(
clusterlog.error,
"partition {} shutdown takes longer than expected, current "
"shutdown stage: {} time since last update: {} seconds",
state.partition->ntp(),
Expand Down

0 comments on commit d0ee2f8

Please sign in to comment.