Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from heib/improveLoggingForPhoneNumberFormatting
Browse files Browse the repository at this point in the history
changes the log level to INFO in case a phone number is empty
  • Loading branch information
contargo-development authored Aug 19, 2019
2 parents 403100e + be5f1df commit 588d743
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public Optional<String> getInternationalFormatOfPhoneNumber() {
logger().info("formatting phone number: {} into international phone number.", getPhoneNumber());

if (StringUtils.isBlank(rawPhoneNumber) || containsOnlyZeros()) {
logger().warn("Not able to parse phone number of {}", rawPhoneNumber);
logger().info("Skipping formatting of empty phone number '{}'", rawPhoneNumber);

return Optional.empty();
}
Expand Down

0 comments on commit 588d743

Please sign in to comment.