Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
Change logging
Browse files Browse the repository at this point in the history
  • Loading branch information
containerscrew committed Oct 11, 2024
1 parent c3de307 commit 57a86b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion local.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ port = 8000
use_proxy = false

[logging]
log_level = "info"
log_level = " info"

[database]
# If you are running iproxy in localhost, change the address from mongodb:27017 to localhost:27017
Expand Down
6 changes: 3 additions & 3 deletions src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ pub async fn get_ip(
}
Err(e) => {
warn!(
"Error serializing geolocation data: {}. External api response {}",
e,
ip_geolocation.to_string()
erro = %e,
external_api_error = %ip_geolocation.0,
"error serializing geolocation data"
);
// Return the original JSON from the external API if serialization fails
Ok((StatusCode::NOT_FOUND, ip_geolocation))
Expand Down

0 comments on commit 57a86b2

Please sign in to comment.