Skip to content

Commit

Permalink
Merge pull request #107 from kinode-dao/develop
Browse files Browse the repository at this point in the history
develop 0.9.6
  • Loading branch information
nick1udwig authored Nov 1, 2024
2 parents e378ed9 + 8f10c55 commit 11daa54
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "kinode_process_lib"
description = "A library for writing Kinode processes in Rust."
version = "0.9.5"
version = "0.9.6"
edition = "2021"
license-file = "LICENSE"
homepage = "https://kinode.org"
Expand Down
10 changes: 6 additions & 4 deletions src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ pub fn init_logging(
file_level: Level,
terminal_level: Level,
remote: Option<RemoteLogSettings>,
terminal_levels_mapping: Option<(u8, u8, u8, u8)>,
) -> anyhow::Result<()> {
let log_dir_path = create_drive(our.package_id(), "log", None)?;
let log_file_path = format!("{log_dir_path}/{}.log", our.process());
Expand All @@ -142,10 +143,11 @@ pub fn init_logging(
metadata.level() == &Level::DEBUG
});
let file_writer_maker = FileWriterMaker { file: log_file };
let error_terminal_writer_maker = TerminalWriterMaker { level: 0 };
let warn_terminal_writer_maker = TerminalWriterMaker { level: 1 };
let info_terminal_writer_maker = TerminalWriterMaker { level: 2 };
let debug_terminal_writer_maker = TerminalWriterMaker { level: 3 };
let (error, warn, info, debug) = terminal_levels_mapping.unwrap_or_else(|| (0, 1, 2, 3));
let error_terminal_writer_maker = TerminalWriterMaker { level: error };
let warn_terminal_writer_maker = TerminalWriterMaker { level: warn };
let info_terminal_writer_maker = TerminalWriterMaker { level: info };
let debug_terminal_writer_maker = TerminalWriterMaker { level: debug };

let sub = tracing_subscriber::registry()
.with(ErrorLayer::default())
Expand Down

0 comments on commit 11daa54

Please sign in to comment.