Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3568468
D12577.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D12577.diff
View Options
diff --git a/services/identity/src/database/farcaster.rs b/services/identity/src/database/farcaster.rs
--- a/services/identity/src/database/farcaster.rs
+++ b/services/identity/src/database/farcaster.rs
@@ -85,7 +85,13 @@
.return_values(ReturnValue::UpdatedNew)
.send()
.await
- .map_err(|e| Error::AwsSdk(e.into()))?;
+ .map_err(|e| {
+ error!(
+ errorType = error_types::FARCASTER_DB_LOG,
+ "DDB client failed to add farcasterID: {:?}", e
+ );
+ Error::AwsSdk(e.into())
+ })?;
match response.attributes {
None => return Err(Error::MissingItem),
@@ -116,7 +122,13 @@
.update_expression(update_expression)
.send()
.await
- .map_err(|e| Error::AwsSdk(e.into()))?;
+ .map_err(|e| {
+ error!(
+ errorType = error_types::FARCASTER_DB_LOG,
+ "DDB client failed to remove farcasterID: {:?}", e
+ );
+ Error::AwsSdk(e.into())
+ })?;
Ok(())
}
diff --git a/services/identity/src/database/one_time_keys.rs b/services/identity/src/database/one_time_keys.rs
--- a/services/identity/src/database/one_time_keys.rs
+++ b/services/identity/src/database/one_time_keys.rs
@@ -190,7 +190,13 @@
let otk_rows = query
.send()
.await
- .map_err(|e| Error::AwsSdk(e.into()))?
+ .map_err(|e| {
+ error!(
+ errorType = error_types::OTK_DB_LOG,
+ "DDB client failed to query OTK rows: {:?}", e
+ );
+ Error::AwsSdk(e.into())
+ })?
.items
.unwrap_or_default()
.into_iter()
diff --git a/services/identity/src/database/token.rs b/services/identity/src/database/token.rs
--- a/services/identity/src/database/token.rs
+++ b/services/identity/src/database/token.rs
@@ -73,7 +73,7 @@
}
Err(e) => {
error!(
- errorType = error_types::TOKEN_DB_LOG, "DynamoDB client failed to get token for user {} with signing public key {}: {}",
+ errorType = error_types::TOKEN_DB_LOG, "DynamoDB client failed to get token for user {} with signing public key {}: {:?}",
user_id, signing_public_key, e
);
Err(Error::AwsSdk(e.into()))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 28, 10:50 PM (4 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2725827
Default Alt Text
D12577.diff (2 KB)
Attached To
Mode
D12577: [identity] Use Debug trait for AWS errors
Attached
Detach File
Event Timeline
Log In to Comment