fix: change logging newlines

This commit is contained in:
Strix 2023-10-14 22:39:47 +02:00
parent aaf9b540b1
commit e96d357e6f
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
2 changed files with 7 additions and 6 deletions

View file

@ -8,11 +8,11 @@ fn format_regular<S: Into<String>>(log: S, record: &Record) -> String {
let line_prefix = |line: String, extend: bool| {
let prefix = if extend {
match record.level() {
log::Level::Trace => " :".bright_blue(),
log::Level::Debug => " :".green(),
log::Level::Info => " :".blue(),
log::Level::Warn => " :".yellow(),
log::Level::Error => " :".red(),
log::Level::Trace => " ]".bright_blue(),
log::Level::Debug => " ?".green(),
log::Level::Info => " >".blue(),
log::Level::Warn => " #".yellow(),
log::Level::Error => " !".red(),
}.to_string()
} else {
match record.level() {

View file

@ -18,7 +18,8 @@ thread_local! {
}
fn main() {
logging::setup_logger().expect("Unable to setup logger.");
logging::setup_logger()
.expect("unable to set logger.");
#[cfg(not(debug_assertions))]
{