Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade some RocksDBPlugin Logging Levels #44

Merged
merged 1 commit into from
Sep 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<PicoCLIOptions> cmdlineOptions = context.getService(PicoCLIOptions.class);
Expand All @@ -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) {
Expand Down