callbacks: policy_check: update identifier for tracing
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -25,7 +25,7 @@ pub fn is_valid(policy_number: &usize, policy_list: &PolicyDataList,
|
|||||||
let mut state = t!("state.started", lang);
|
let mut state = t!("state.started", lang);
|
||||||
let dt_start: DateTime<Local> = Local::now();
|
let dt_start: DateTime<Local> = Local::now();
|
||||||
|
|
||||||
trace!(target: "csv-test",
|
trace!(target: "advotracker",
|
||||||
process = ?res,
|
process = ?res,
|
||||||
state = ?state,
|
state = ?state,
|
||||||
policy_number = ?policy_number,
|
policy_number = ?policy_number,
|
||||||
@@ -41,7 +41,7 @@ pub fn is_valid(policy_number: &usize, policy_list: &PolicyDataList,
|
|||||||
policy_number, policy_code);
|
policy_number, policy_code);
|
||||||
info!("{} => {} ({:?})", res, policy_number, policy_code);
|
info!("{} => {} ({:?})", res, policy_number, policy_code);
|
||||||
result = true;
|
result = true;
|
||||||
trace!(target: "csv-test",
|
trace!(target: "advotracker",
|
||||||
policy_number = ?policy_number,
|
policy_number = ?policy_number,
|
||||||
validation = ?res,
|
validation = ?res,
|
||||||
policy_code = ?policy_code);
|
policy_code = ?policy_code);
|
||||||
@@ -50,7 +50,7 @@ pub fn is_valid(policy_number: &usize, policy_list: &PolicyDataList,
|
|||||||
let res = t!("policy.validation.failed", lang);
|
let res = t!("policy.validation.failed", lang);
|
||||||
println!("Noop! Number isn't valid!");
|
println!("Noop! Number isn't valid!");
|
||||||
info!("{} => {}", res, policy_number);
|
info!("{} => {}", res, policy_number);
|
||||||
trace!(target: "csv-test",
|
trace!(target: "advotracker",
|
||||||
policy_number = ?policy_number,
|
policy_number = ?policy_number,
|
||||||
validation = ?res);
|
validation = ?res);
|
||||||
},
|
},
|
||||||
@@ -61,7 +61,7 @@ pub fn is_valid(policy_number: &usize, policy_list: &PolicyDataList,
|
|||||||
|
|
||||||
res = t!("policy.validation.finished", lang);
|
res = t!("policy.validation.finished", lang);
|
||||||
state = t!("state.finished", lang);
|
state = t!("state.finished", lang);
|
||||||
trace!(target: "csv-test",
|
trace!(target: "advotracker",
|
||||||
process = ?res,
|
process = ?res,
|
||||||
state = ?state,
|
state = ?state,
|
||||||
date_stop = ?dt_end.to_string(),
|
date_stop = ?dt_end.to_string(),
|
||||||
|
|||||||
Reference in New Issue
Block a user