Page MenuHomePhabricator

D12577.diff
No OneTemporary

D12577.diff

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

Mime Type
text/plain
Expires
Sat, Dec 28, 10:58 AM (8 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2725827
Default Alt Text
D12577.diff (2 KB)

Event Timeline