From 179aa71f0c7eb0f14003e012caf86b58908b9691 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Feb 2026 07:55:24 +0000 Subject: [PATCH 1/2] Initial plan From 42cbedfd035993e2889d4d3d127f9b2be9c81754 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Feb 2026 08:01:35 +0000 Subject: [PATCH 2/2] Define CURIO_PDP_DEBUG_LOG_LEVEL constant to replace duplicated magic string Co-authored-by: redpanda-f <181817029+redpanda-f@users.noreply.github.com> --- src/commands/start/curio/constants.rs | 3 +++ src/commands/start/curio/daemon.rs | 4 ++-- src/commands/start/curio/db_setup.rs | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/commands/start/curio/constants.rs b/src/commands/start/curio/constants.rs index 4c71078..1858ca5 100644 --- a/src/commands/start/curio/constants.rs +++ b/src/commands/start/curio/constants.rs @@ -24,6 +24,9 @@ EnablePDP = true EnableParkPiece = true "#; +/// PDP debug log level environment variable +pub const CURIO_PDP_DEBUG_LOG_LEVEL: &str = "GOLOG_LOG_LEVEL=pdp=debug"; + /// Wait times (in seconds) pub const DB_SETUP_WAIT_SECS: u64 = 10; pub const STORAGE_ATTACH_WAIT_SECS: u64 = 5; diff --git a/src/commands/start/curio/daemon.rs b/src/commands/start/curio/daemon.rs index d1dc5b2..d852f3d 100644 --- a/src/commands/start/curio/daemon.rs +++ b/src/commands/start/curio/daemon.rs @@ -5,7 +5,7 @@ use super::super::step::SetupContext; use super::db_setup::{build_db_env_vars, build_foc_contract_env_vars, build_lotus_env_vars}; use super::CurioStep; -use crate::commands::start::curio::constants::CURIO_LAYERS; +use crate::commands::start::curio::constants::{CURIO_LAYERS, CURIO_PDP_DEBUG_LOG_LEVEL}; use crate::docker::command_logger::run_and_log_command_strings; use crate::docker::init::set_volume_ownership; use crate::docker::network::{lotus_network_name, pdp_miner_network_name}; @@ -249,7 +249,7 @@ fn build_docker_create_args( } docker_args.push("-e".to_string()); - docker_args.push("GOLOG_LOG_LEVEL=pdp=debug".to_string()); + docker_args.push(CURIO_PDP_DEBUG_LOG_LEVEL.to_string()); Ok(docker_args) } diff --git a/src/commands/start/curio/db_setup.rs b/src/commands/start/curio/db_setup.rs index 78a7cbe..d289095 100644 --- a/src/commands/start/curio/db_setup.rs +++ b/src/commands/start/curio/db_setup.rs @@ -5,7 +5,7 @@ //! - PDP layer configuration (curio config create) use super::super::step::SetupContext; -use super::constants::{DB_SETUP_WAIT_SECS, PDP_LAYER_CONFIG_TEMPLATE}; +use super::constants::{CURIO_PDP_DEBUG_LOG_LEVEL, DB_SETUP_WAIT_SECS, PDP_LAYER_CONFIG_TEMPLATE}; use crate::commands::start::foc_deploy::contract_addresses::ContractAddresses; use crate::commands::start::genesis::constants::PDP_SP_MINER_ID_START; use crate::commands::start::lotus_utils::{build_fullnode_api_info, read_lotus_token}; @@ -202,7 +202,7 @@ fn create_base_cluster( } docker_args.push("-e"); - docker_args.push("GOLOG_LOG_LEVEL=pdp=debug"); + docker_args.push(CURIO_PDP_DEBUG_LOG_LEVEL); // Add image and command let bash_cmd = format!( @@ -315,7 +315,7 @@ fn create_pdp_layer(context: &SetupContext, sp_index: usize) -> Result<(), Box