Skip to content

Commit

Permalink
implemented reset log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
rashtao committed Sep 5, 2024
1 parent b0b1c7c commit dc49c6e
Show file tree
Hide file tree
Showing 8 changed files with 425 additions and 65 deletions.
7 changes: 7 additions & 0 deletions core/src/main/java/com/arangodb/ArangoDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,13 @@ public interface ArangoDB extends ArangoSerdeAccessor {
*/
LogLevelEntity setLogLevel(LogLevelEntity entity, LogLevelOptions options);

/**
* Reset the server log levels
* Revert the server's log level settings to the values they had at startup, as determined by the startup options specified on the command-line, a configuration file, and the factory defaults.
* @since ArangoDB 3.12
*/
LogLevelEntity resetLogLevels(LogLevelOptions options);

/**
* @return the list of available rules and their respective flags
* @see <a href="https://docs.arangodb.com/stable/develop/http-api/queries/aql-queries/#list-all-aql-optimizer-rules">API
Expand Down
5 changes: 5 additions & 0 deletions core/src/main/java/com/arangodb/ArangoDBAsync.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ public interface ArangoDBAsync extends ArangoSerdeAccessor {
*/
CompletableFuture<LogLevelEntity> setLogLevel(LogLevelEntity entity, LogLevelOptions options);

/**
* Asynchronous version of {@link ArangoDB#resetLogLevels(LogLevelOptions)}
*/
CompletableFuture<LogLevelEntity> resetLogLevels(LogLevelOptions options);

/**
* Asynchronous version of {@link ArangoDB#getQueryOptimizerRules()}
*/
Expand Down
Loading

0 comments on commit dc49c6e

Please sign in to comment.