Skip to content

Commit

Permalink
update unreal_mod_manager for deps update
Browse files Browse the repository at this point in the history
  • Loading branch information
atenfyr committed Dec 20, 2024
1 parent 52b7448 commit e1bdfc8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "Astroneer Modloader"
[workspace.dependencies]
astro_mod_integrator = { path = "./astro_mod_integrator" }

unreal_mod_manager = { rev = "a35f9bed0943baed7f22357caf4328e9ce300aea", git = "https://github.com/AstroTechies/unrealmodding", features = [
unreal_mod_manager = { rev = "a2a39b8deefe0448aceff0492b4ca10889bf676a", git = "https://github.com/AstroTechies/unrealmodding", features = [
"ue4_23",
"cpp_loader",
] }
Expand Down
32 changes: 12 additions & 20 deletions astro_modloader/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ impl Log for SimpleLogger {
None => "<unknown>",
};

// if it's from a dependency only log debug and above, else everything
if !record.file().unwrap_or("").contains(".cargo") || record.level() <= Level::Debug {
// just log debug and above, as otherwise logs are far, far too verbose
if record.level() <= Level::Debug {
let level = match record.level() {
Level::Error => "ERROR".red(),
Level::Warn => "WARN".yellow(),
Expand All @@ -62,25 +62,17 @@ impl Log for SimpleLogger {
"]".truecolor(100, 100, 100),
record.args()
);
}

let level = match record.level() {
Level::Error => "ERROR",
Level::Warn => "WARN",
Level::Info => "INFO",
Level::Debug => "DEBUG",
Level::Trace => "TRACE",
};

self.lock(|file| {
writeln!(
file,
"[{level:<5} {file_path}:{}] {}",
record.line().unwrap_or(0),
record.args()
)
})
.unwrap();
self.lock(|file| {
writeln!(
file,
"[{level:<5} {file_path}:{}] {}",
record.line().unwrap_or(0),
record.args()
)
})
.unwrap();
}
}
}

Expand Down

0 comments on commit e1bdfc8

Please sign in to comment.