Skip to content

Commit

Permalink
Log error message when error is thrown in apns initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jvergeldedios authored and FriedrichAltheide committed Apr 13, 2024
1 parent e7cc48f commit 7448e7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fpush-apns/src/push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ impl FpushApns {
Ok(wrapped_conn)
}
Err(a2::error::Error::ReadError(_)) => Err(PushError::PushEndpointPersistent),
Err(_) => Err(PushError::PushEndpointTmp),
Err(e) => {
error!("Problem initializing apple config: {}", e);
Err(PushError::PushEndpointTmp)
},
}
}
}
Expand Down

0 comments on commit 7448e7c

Please sign in to comment.