Skip to content

Conversation

@qian-squareup
Copy link
Collaborator

What and Why

Add server side logging for database errors in WriteResult function similar to logging for readError.

Testing

2025-06-10 06:03:16,063372 INFO 2025/06/10 06:03:16.063314 api_gomux.go:1258: DATABASE ERROR: write exception: write errors: [Document failed validation: {"failingDocumentId": {"$oid":"6847caa44258cdaabf0238ce"},"details": {"operatorName": "$jsonSchema","schemaRulesNotSatisfied": [{"operatorName": "required","specifiedAs": {"required": ["app","aws_arn","aws_account_id","aws_region","cache_node_id","replication_group_aws_arn"]},"missingProperties": ["aws_arn","aws_account_id","aws_region","cache_node_id","replication_group_aws_arn"]}]}}]

jemiahw
jemiahw previously approved these changes Jun 10, 2025
@qian-squareup qian-squareup merged commit 34b9321 into master Jun 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants