Skip to content

Commit

Permalink
Fix log API
Browse files Browse the repository at this point in the history
  • Loading branch information
pluma4345 committed Feb 14, 2024
1 parent 79637cf commit 2b62f00
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5958,7 +5958,7 @@ export class Database {
getLogEntries(options?: LogEntriesOptions): Promise<LogEntries> {
return this.request(
{
path: "/_admin/log",
path: "/_admin/log/entries",
qs: options,
},
(res) => res.body
Expand All @@ -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();
Expand Down

0 comments on commit 2b62f00

Please sign in to comment.