MINOR: Change rocksdb logging to error level
According to the java-doc: the rocksdb logging level should be set Error or Fatal for production usage.
Author: Damian Guy
Reviewers: Matthias J. Sax, Guozhang Wang
Closes from dguy/rocks-db-logging
@@ -35,6 +35,7 @@ import org.rocksdb.BlockBasedTableConfig;
import org.rocksdb.CompactionStyle;
import org.rocksdb.CompressionType;
import org.rocksdb.FlushOptions;
+import org.rocksdb.InfoLogLevel;
import org.rocksdb.Options;
import org.rocksdb.RocksDB;
import org.rocksdb.RocksDBException;
@@ -120,6 +121,7 @@ public class RocksDBStore<K, V> implements KeyValueStore<K, V> {
options.setMaxWriteBufferNumber(MAX_WRITE_BUFFERS);
options.setCreateIfMissing(true);
options.setErrorIfExists(false);
+ options.setInfoLogLevel(InfoLogLevel.ERROR_LEVEL);
wOptions = new WriteOptions();
wOptions.setDisableWAL(true);
