Skip to content

Commit

Permalink
tweak logging calls in some places
Browse files Browse the repository at this point in the history
remove pretty print and change one message to have more information
  • Loading branch information
zbrox committed May 6, 2020
1 parent 81c90a5 commit a4e2ee3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn main() -> Result<()> {
&args.config_path.to_str().unwrap_or_default(),
&config.settings.poll_seconds,
);
log::debug!("Config loaded: {:#?}", config);
log::debug!("Config loaded: {:?}", config);

let sleep_time = Duration::from_secs(config.settings.poll_seconds);
task::block_on(check_loop(
Expand Down Expand Up @@ -91,7 +91,7 @@ pub async fn check_loop(
)
.await?;

log::debug!("Fetched queue info: {:#?}", queue_info);
log::debug!("Fetched queue info: {:?}", queue_info);

triggers
.iter()
Expand Down Expand Up @@ -143,9 +143,9 @@ pub async fn check_loop(
.map(move |x| {
match x {
Ok(_) => {
log::info!("Sent message to {}", msg.channel);
log::info!("Sent message to {} about {}", msg.channel, msg.metadata.queue_name);
log::debug!(
"Slack message body {:#?}, sent on {:?}",
"Slack message body {:?}, sent on {:?}",
msg,
thread::current().id()
);
Expand Down

0 comments on commit a4e2ee3

Please # to comment.