Skip to content

Commit ed393b9

Browse files
committed
Explain how to disable warnings
1 parent 61c1bb5 commit ed393b9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/guide/release-notes.asciidoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,15 @@
6363
* Add `include_remotes` and remove `flat_settings` from Cluster stats API
6464
* Add `remote_indices` to Create or update application privileges and Create or update roles APIs
6565

66+
Note that the new Python warnings can be disabled as follows:
6667

68+
[source,python]
69+
----
70+
import warnings
71+
from elasticsearch.exceptions import GeneralAvailabilityWarning
6772
68-
73+
warnings.filterwarnings("ignore", category=GeneralAvailabilityWarning)
74+
----
6975

7076
[discrete]
7177
[[rn-8-15-1]]
@@ -77,8 +83,6 @@
7783
- Add `q` parameter to Update by Query API
7884
- Add `allow_no_indices` and `ignore_unavailable` parameters to Resolve index API
7985

80-
81-
8286
[discrete]
8387
[[rn-8-15-0]]
8488
=== 8.15.0 (2024-08-09)

0 commit comments

Comments
 (0)