Skip to content

Commit

Permalink
add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
t4lz committed Dec 30, 2024
1 parent 99561ce commit ba16099
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions mirrord/agent/src/steal/ip_tables/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ where
{
const ENTRYPOINT: &'static str = "OUTPUT";

#[tracing::instrument(skip(ipt), level = "debug", ret)] // TODO: change to trace.
pub fn create(ipt: Arc<IPT>, chain_name: String, pod_ips: Option<&str>) -> Result<Self> {
let managed = IPTableChain::create(ipt, chain_name)?;

Expand Down
1 change: 1 addition & 0 deletions mirrord/agent/src/steal/ip_tables/prerouting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ where
Self::create(ipt, "INPUT")
}

#[tracing::instrument(level = "debug", skip(ipt), ret)]
pub fn create(ipt: Arc<IPT>, chain_name: &'static str) -> Result<Self> {
let managed = IPTableChain::create(ipt, IPTABLE_PREROUTING.to_string())?;

Expand Down
2 changes: 1 addition & 1 deletion tests/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ pub async fn run_exec(
// base_env.insert("MIRRORD_AGENT_IMAGE", "test");
base_env.insert(
"MIRRORD_AGENT_IMAGE",
"docker.io/t4lz/mirrord-agent:2024-12-27_4",
"docker.io/t4lz/mirrord-agent:2024-12-30_1",
);
base_env.insert("MIRRORD_AGENT_TTL", "180"); // TODO: delete
base_env.insert("MIRRORD_CHECK_VERSION", "false");
Expand Down

0 comments on commit ba16099

Please sign in to comment.