Skip to content

Commit 1e797f0

Browse files
committed
add trace logging
1 parent e3f0616 commit 1e797f0

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

config.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
caracat:
2+
# src_ipv6_addr: "2001:19f0:6801:7bf:5400:5ff:fe3b:306b"
3+
integrity_check: false
4+
5+
kafka:
6+
brokers: "redpanda.nxthdr.dev:9092"
7+
8+
auth_protocol: SASL_PLAINTEXT
9+
auth_sasl_username: "saimiris"
10+
auth_sasl_password: "DT9hMjMU8fvsj7Kj"
11+
auth_sasl_mechanism: SCRAM-SHA-512
12+
13+
in_topics: saimiris-targets
14+
in_group_id: saimiris-prober-36ygtdqgzb
15+
16+
out_topic: saimiris-results
17+
18+
19+
prober:
20+
id: "36ygtdqgzb"

src/prober/prober.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ impl ReceiveLoop {
135135
// e.g. ReceiverError::CaptureError(...)
136136
match error.downcast_ref::<pcap::Error>() {
137137
Some(error) => match error {
138-
pcap::Error::TimeoutExpired => {}
138+
pcap::Error::TimeoutExpired => {
139+
trace!("pcap timeout_expired");
140+
}
139141
_ => error!("{:?}", error),
140142
},
141143
None => {
@@ -147,6 +149,7 @@ impl ReceiveLoop {
147149
}
148150

149151
if *stopped_thr.lock().unwrap() {
152+
trace!("Stopping receive loop");
150153
break;
151154
}
152155
}

testbed/compose.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ services:
22
redpanda:
33
image: redpandadata/redpanda:latest
44
volumes:
5-
- ./config/redpanda/entrypoint.sh:/entrypoint.sh:ro
6-
- ./config/redpanda/redpanda.yml:/etc/redpanda/redpanda.yaml:ro
5+
- ./config/redpanda/entrypoint.sh:/entrypoint.sh:ro
6+
- ./config/redpanda/redpanda.yml:/etc/redpanda/redpanda.yaml:ro
77
ports:
8-
- "9092:9092"
8+
- "9092:9092"
99
networks:
1010
testbed:
1111
ipv4_address: 10.0.0.100
1212

1313
clickhouse:
1414
image: clickhouse/clickhouse-server:latest
1515
volumes:
16-
- ./config/clickhouse/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
16+
- ./config/clickhouse/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
1717
networks:
1818
testbed:
1919
ipv4_address: 10.0.0.200

0 commit comments

Comments
 (0)