Skip to content

Commit 9fa5e7a

Browse files
authored
implemented reset log levels (#573)
1 parent b0b1c7c commit 9fa5e7a

File tree

8 files changed

+426
-66
lines changed

8 files changed

+426
-66
lines changed

Diff for: core/src/main/java/com/arangodb/ArangoDB.java

+7
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,13 @@ public interface ArangoDB extends ArangoSerdeAccessor {
352352
*/
353353
LogLevelEntity setLogLevel(LogLevelEntity entity, LogLevelOptions options);
354354

355+
/**
356+
* Reset the server log levels
357+
* 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.
358+
* @since ArangoDB 3.12
359+
*/
360+
LogLevelEntity resetLogLevels(LogLevelOptions options);
361+
355362
/**
356363
* @return the list of available rules and their respective flags
357364
* @see <a href="https://docs.arangodb.com/stable/develop/http-api/queries/aql-queries/#list-all-aql-optimizer-rules">API

Diff for: core/src/main/java/com/arangodb/ArangoDBAsync.java

+5
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ public interface ArangoDBAsync extends ArangoSerdeAccessor {
186186
*/
187187
CompletableFuture<LogLevelEntity> setLogLevel(LogLevelEntity entity, LogLevelOptions options);
188188

189+
/**
190+
* Asynchronous version of {@link ArangoDB#resetLogLevels(LogLevelOptions)}
191+
*/
192+
CompletableFuture<LogLevelEntity> resetLogLevels(LogLevelOptions options);
193+
189194
/**
190195
* Asynchronous version of {@link ArangoDB#getQueryOptimizerRules()}
191196
*/

0 commit comments

Comments
 (0)