Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more-meaningful __repr__ or __str__ for conditions #1202

Closed
offby1 opened this issue Aug 1, 2017 · 5 comments
Closed

Provide more-meaningful __repr__ or __str__ for conditions #1202

offby1 opened this issue Aug 1, 2017 · 5 comments
Labels
auto-label-exempt Issue will not be subject to stale-bot dynamodb feature-request This issue requests a feature. needs-review p2 This is a standard priority issue resources

Comments

@offby1
Copy link

offby1 commented Aug 1, 2017

I spend a lot of time looking at my service's logs, and seeing messages like this:

2017-07-26T07:33:00.182089Z PID:(18030) boto3.resources.action [INFO] Calling dynamodb:query with {'Limit': 200, 'KeyConditionExpression': <boto3.dynamodb.conditions.Equals object at 0x7ffe0a29fa20>, 'TableName':  ...

It'd be really nice to see something meaningful in that log message, like Key("foo").eq("bar") -- i.e., the name of the key, and the value, instead of <boto3.dynamodb.conditions.Equals object at 0x7ffe0a29fa20>, which tells me almost nothing. I haven't found a way to do this from "outside" of boto, so perhaps you could add this as a feature.

@jamesls
Copy link
Member

jamesls commented Aug 1, 2017

Seems reasonable to me. Marking as a feature request.

@jamesls jamesls added the feature-request This issue requests a feature. label Aug 1, 2017
DamZiobro added a commit to DamZiobro/boto3 that referenced this issue Sep 15, 2017
@swetashre swetashre added the auto-label-exempt Issue will not be subject to stale-bot label May 14, 2020
@9037568
Copy link

9037568 commented Jun 11, 2021

How does this go 4 years without a fix?

@mutantkeyboard
Copy link

5 years

@aBurmeseDev
Copy link
Contributor

Thank you all for checking in and sorry for the delay on this.

We created a backlog item to look into this feature request and if anyone wants to share additional use cases or feedback then please feel free to leave a comment. Although we can't give a definite timeline, I'll make sure to keep it posted as soon as I hear anything else and please feel free to check back here in the future.

@aBurmeseDev
Copy link
Contributor

aBurmeseDev commented Jan 18, 2023

The boto3 team has recently announced that the Resource interface has entered a feature freeze and won’t be accepting new changes at this time: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html. We’ll be closing existing feature requests, such as this issue, to avoid any confusion on current implementation status. We do appreciate your feedback and will ensure it’s considered in future feature decisions.

We’d like to highlight that all existing code using resources is supported and will continue to work in Boto3. No action is needed from users of the library.

@aBurmeseDev aBurmeseDev closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-label-exempt Issue will not be subject to stale-bot dynamodb feature-request This issue requests a feature. needs-review p2 This is a standard priority issue resources
Projects
None yet
Development

No branches or pull requests

7 participants