From 3238afbba5594095fe0d8643a70225f50f6eb422 Mon Sep 17 00:00:00 2001 From: Anthony Mahanna Date: Wed, 22 Nov 2023 13:47:57 -0500 Subject: [PATCH] add deprecation warning --- arango/database.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arango/database.py b/arango/database.py index 5ac8d07d..168e6122 100644 --- a/arango/database.py +++ b/arango/database.py @@ -645,6 +645,9 @@ def read_log( :rtype: dict :raise arango.exceptions.ServerReadLogError: If read fails. """ + m = "read_log() is deprecated in ArangoDB 3.8 and will be removed in a future version of the driver. Use read_log_entries() instead." # noqa: E501 + warn(m, DeprecationWarning, stacklevel=1) + params = dict() if upto is not None: params["upto"] = upto