From e270466da15b6bcf6fedbfcc45c8e2efddf54833 Mon Sep 17 00:00:00 2001 From: Danno Ferrin Date: Mon, 23 Sep 2019 22:15:24 -0600 Subject: [PATCH] Downgrade some RocksDBPlugin Logging Levels Some of the logging levels produce suprising results, for example the call to `--help` spits out info about rocksdb starting, which we don't need. Turn down plugin start/stop to debug and using an existing DB to debug. Config options are only developer relevant, so down to trace. Signed-off-by: Danno Ferrin --- .../storage/rocksdb/RocksDBKeyValueStorageFactory.java | 2 +- .../plugin/services/storage/rocksdb/RocksDBPlugin.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBKeyValueStorageFactory.java b/plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBKeyValueStorageFactory.java index 05a0d211f56..cb465b19f94 100644 --- a/plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBKeyValueStorageFactory.java +++ b/plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBKeyValueStorageFactory.java @@ -151,7 +151,7 @@ private int readDatabaseVersion(final BesuConfiguration commonConfiguration) thr final int databaseVersion; if (databaseExists) { databaseVersion = DatabaseMetadata.fromDirectory(databaseDir).getVersion(); - LOG.info("Existing database detected at {}. Version {}", databaseDir, databaseVersion); + LOG.debug("Existing database detected at {}. Version {}", databaseDir, databaseVersion); } else { databaseVersion = DEFAULT_VERSION; LOG.info( diff --git a/plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBPlugin.java b/plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBPlugin.java index dc83516c4ce..3cd3241b38f 100644 --- a/plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBPlugin.java +++ b/plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBPlugin.java @@ -47,7 +47,7 @@ public RocksDBPlugin() { @Override public void register(final BesuContext context) { - LOG.info("Registering plugin"); + LOG.debug("Registering plugin"); this.context = context; final Optional cmdlineOptions = context.getService(PicoCLIOptions.class); @@ -60,21 +60,21 @@ public void register(final BesuContext context) { cmdlineOptions.get().addPicoCLIOptions(NAME, options); createFactoriesAndRegisterWithStorageService(); - LOG.info("Plugin registered."); + LOG.debug("Plugin registered."); } @Override public void start() { - LOG.info("Starting plugin."); + LOG.debug("Starting plugin."); if (factory == null) { - LOG.debug("Applied configuration: {}", options.toString()); + LOG.trace("Applied configuration: {}", options.toString()); createFactoriesAndRegisterWithStorageService(); } } @Override public void stop() { - LOG.info("Stopping plugin."); + LOG.debug("Stopping plugin."); try { if (factory != null) {