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

Add a rudimentary warning system #523

Merged
merged 4 commits into from
Oct 2, 2024
Merged

Add a rudimentary warning system #523

merged 4 commits into from
Oct 2, 2024

Conversation

msullivan
Copy link
Member

In this initial iteration of it, warnings are encoded in JSON as a
header for CommandDataDescription.

A warning_handler field is added to Options, and it is invoked if
any warnings occured. We provide two built-in functions:
log_warnings and raise_warnings. The default is log_warnings.

In this initial iteration of it, warnings are encoded in JSON as a
header for CommandDataDescription.

A `warning_handler` field is added to `Options`, and it is invoked if
any warnings occured. We provide two built-in functions:
`log_warnings` and `raise_warnings`. The default is `log_warnings`.
Copy link
Member

@fantix fantix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall!

edgedb/abstract.py Show resolved Hide resolved
edgedb/abstract.py Outdated Show resolved Hide resolved
edgedb/abstract.py Show resolved Hide resolved
@msullivan msullivan changed the title Add a warning rudimentary system Add a rudimentary warning system Oct 2, 2024
@msullivan msullivan merged commit 29370f2 into master Oct 2, 2024
52 checks passed
@msullivan msullivan deleted the warnings branch October 2, 2024 18:31
@msullivan msullivan mentioned this pull request Oct 2, 2024
6 tasks
fantix added a commit that referenced this pull request Oct 3, 2024
Changes
=======

* Add geometry, geography, box2d, and box3d PostGIS types (#518)
  (by @vpetrovykh in 65d5cdc)

* Add a rudimentary warning system (#523)
  (by @msullivan in 29370f2)

Fixes
=====

* use StopIteration.value in blocking client _iter_coroutine (#508)
  (by @graingert in d0e9ed1)
@fantix fantix mentioned this pull request Oct 3, 2024
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.

2 participants