Skip to content

Commit

Permalink
MINIFICPP-2495 change default logging settings
Browse files Browse the repository at this point in the history
Signed-off-by: Marton Szasz <[email protected]>
Signed-off-by: Gabor Gyimesi <[email protected]>

This closes #1901
  • Loading branch information
szaszm authored and lordgamez committed Nov 28, 2024
1 parent d6dcc24 commit 80e9533
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions conf/minifi-log.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ spdlog.pattern=[%Y-%m-%d %H:%M:%S.%e] [%n] [%l] %v
appender.rolling=rollingappender
#appender.rolling.directory=${MINIFI_HOME}/logs
appender.rolling.file_name=minifi-app.log
appender.rolling.max_files=3
appender.rolling.max_file_size=5 MB
appender.rolling.max_files=1
appender.rolling.max_file_size=20 MB

#Other possible appenders
#appender.stdout=stdout
Expand Down
4 changes: 3 additions & 1 deletion extensions/rocksdb-repos/database/RocksDbUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <string>

#include "Exception.h"
#include "utils/Literals.h"

namespace org::apache::nifi::minifi::internal {

Expand Down Expand Up @@ -56,7 +57,8 @@ void setCommonRocksDbOptions(Writable<rocksdb::DBOptions>& db_opts) {
db_opts.set(&rocksdb::DBOptions::create_if_missing, true);
db_opts.set(&rocksdb::DBOptions::use_direct_io_for_flush_and_compaction, true);
db_opts.set(&rocksdb::DBOptions::use_direct_reads, true);
db_opts.set(&rocksdb::DBOptions::keep_log_file_num, 5);
db_opts.set(&rocksdb::DBOptions::keep_log_file_num, 1);
db_opts.set(&rocksdb::DBOptions::max_log_file_size, 1_MiB);
}

std::unordered_map<std::string, std::string> getRocksDbOptionsToOverride(const std::shared_ptr<Configure> &configuration, std::string_view custom_db_prefix) {
Expand Down

0 comments on commit 80e9533

Please sign in to comment.