Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Use Log4J message template instead of String.format (#1673)
Browse files Browse the repository at this point in the history
* Factorise metrics code for KeyValueStorage database

- introduce `MonitorableKeyValueStorage`
- factorise code
- remove metrics instanciation in `RocksDbKeyValueStorage` and `ColumnarRocksDbKeyValueStorage`

* Rename class

* Use Log4J message template instead of String.format
  • Loading branch information
AbdelStark authored Jul 11, 2019
1 parent f89f922 commit c0975fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public String getName() {
public JsonRpcResponse response(final JsonRpcRequest request) {
try {
final Level logLevel = parameters.required(request.getParams(), 0, Level.class);
LOG.log(Level.OFF, String.format("Setting logging level to %s", logLevel.name()));
LOG.log(Level.OFF, "Setting logging level to {}", logLevel.name());
Configurator.setAllLevels("", logLevel);
return new JsonRpcSuccessResponse(request.getId());
} catch (InvalidJsonRpcParameters invalidJsonRpcParameters) {
Expand Down

0 comments on commit c0975fb

Please sign in to comment.