From 2b62f0081cc20fd67d6ef0c843a13e31d5a5b226 Mon Sep 17 00:00:00 2001 From: Alan Plum Date: Wed, 14 Feb 2024 11:57:58 +0100 Subject: [PATCH] Fix log API --- CHANGELOG.md | 11 +++++++++++ src/database.ts | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3f86e94..3cc7c579 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,17 @@ This driver uses semantic versioning: - Made `options` argument in `collection.edges`, `inEdges` and `outEdges` optional ([#802](https://github.com/arangodb/arangojs/issues/802)) +### Deprecated + +- Deprecated `db.getLogMessages` + + This API was deprecated in ArangoDB 3.8 and should no longer be used. + Use `db.getLogEntries` instead. + +### Fixed + +- Fixed `db.getLogEntries` using the wrong API endpoint + ## [8.6.0] - 2023-10-24 ### Added diff --git a/src/database.ts b/src/database.ts index 89d3280a..114d5e38 100644 --- a/src/database.ts +++ b/src/database.ts @@ -5958,7 +5958,7 @@ export class Database { getLogEntries(options?: LogEntriesOptions): Promise { return this.request( { - path: "/_admin/log", + path: "/_admin/log/entries", qs: options, }, (res) => res.body @@ -5970,6 +5970,9 @@ export class Database { * * @param options - Options for retrieving the log entries. * + * @deprecated This endpoint has been deprecated in ArangoDB 3.8. + * Use {@link Database#getLogEntries} instead. + * * @example * ```js * const messages = await db.getLogMessages();