Skip to content

Commit

Permalink
fix log with rebuild command
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Feb 25, 2025
1 parent 8de2285 commit 4694d1e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion counterparty-core/counterpartycore/lib/cli/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def initialise_log_config(
else: # user-specified location
config.API_LOG = api_log_file

config.LOG_IN_CONSOLE = action == "start" or config.VERBOSE > 0
config.LOG_IN_CONSOLE = action in ["start", "rebuild"] or config.VERBOSE > 0
config.JSON_LOGS = json_logs

config.MAX_LOG_FILE_SIZE = max_log_file_size
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

def test_rebuild():
sh_counterparty_server, _db_file, _api_url = prepare("testnet4")
sh_counterparty_server("rebuild", "-vv")
sh_counterparty_server("rebuild")
2 changes: 0 additions & 2 deletions counterparty-rs/src/indexer/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ where

#[allow(clippy::expect_used)]
pub fn setup_logging(config: &Config) {
println!("Current log level setting: {:?}", config.log_level);

INIT.call_once(|| {
let file = OpenOptions::new()
.append(true)
Expand Down

0 comments on commit 4694d1e

Please sign in to comment.