Compare commits

..

No commits in common. "c4e6be4e424f230763809b4adb81c8bce4d632ed" and "4772893e8f79b683ec6a67c71d0c789e6f859bfe" have entirely different histories.

6 changed files with 7 additions and 8 deletions

View file

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 Christoph Johannes Scherr Copyright (c) 2023 Christoph Johannes Scherr
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View file

@ -75,7 +75,7 @@ impl Logger {
/// Will enable the logger to be used. /// Will enable the logger to be used.
/// ///
/// Assumes some defaults, use [`init_customized`](Self::init_customized) for more control /// Assumes some defaults, use [`init_customized`](Self::init_customized) for more control
pub fn init(log_dir: Option<PathBuf>, max_level: Option<Level>, uptime: bool) -> Result<()> { pub fn init(log_dir: Option<PathBuf>, max_level: Option<Level>) -> Result<()> {
Self::init_customized( Self::init_customized(
log_dir.is_some(), log_dir.is_some(),
log_dir.unwrap_or(PathBuf::from(DEFAULT_LOG_DIR)), log_dir.unwrap_or(PathBuf::from(DEFAULT_LOG_DIR)),
@ -89,7 +89,7 @@ impl Logger {
false, false,
false, false,
true, true,
uptime, false,
) )
} }

View file

@ -9,8 +9,7 @@ git add -A
git commit -m "Release v$NEW_VERSION" || (echo ">>>>>>>> COMMIT FAILED OR THERE WAS NOTHING TO COMMIT"; sleep 5) git commit -m "Release v$NEW_VERSION" || (echo ">>>>>>>> COMMIT FAILED OR THERE WAS NOTHING TO COMMIT"; sleep 5)
echo ">>>>>>>> SKIP!!!!!" echo ">>>>>>>> SKIP!!!!!"
cargo ws version --amend cargo ws version --amend
echo ">>>>>>>> PUBLISHING RELEASE FOR REPO" git push || (echo ">>>>>>>> PUSH FAILED OR THERE WAS NOTHING TO PUSH"; sleep 5)
bash scripts/release.sh
echo ">>>>>>>> PUBLISHING TO CRATES.IO NEXT" echo ">>>>>>>> PUBLISHING TO CRATES.IO NEXT"
sleep 10 sleep 10
cargo publish -p libpt-log cargo publish -p libpt-log

View file

@ -4,7 +4,7 @@ NEW_VERSION=$(cat Cargo.toml | rg '^\s*version\s*=\s*"([^"]*)"\s*$' -or '$1')
VERSION=$(git rev-parse HEAD) VERSION=$(git rev-parse HEAD)
GIT_COMMIT_SHA=$(git rev-parse HEAD) GIT_COMMIT_SHA=$(git rev-parse HEAD)
BODY=" BODY="
$(git log $(git describe --tags --abbrev=0)..HEAD --pretty="- %s" --oneline --decorate) $(git log $(git describe --tags --abbrev=0)..HEAD --pretty="- %s" -oneline --decorate)
" "
USER=PlexSheep USER=PlexSheep
git tag "v$NEW_VERSION-test" || echo "could not tag" git tag "v$NEW_VERSION-test" || echo "could not tag"

View file

@ -91,7 +91,7 @@ fn main() {
} }
}; };
if cli.log_meta { if cli.log_meta {
Logger::init(None, Some(ll), false).expect("could not initialize Logger"); Logger::init(None, Some(ll)).expect("could not initialize Logger");
} else { } else {
// less verbose version // less verbose version
Logger::init_mini(Some(ll)).expect("could not initialize Logger"); Logger::init_mini(Some(ll)).expect("could not initialize Logger");

View file

@ -165,7 +165,7 @@ fn cli_parse() -> Cli {
} }
}; };
if cli.meta { if cli.meta {
Logger::init(None, Some(ll), false).expect("could not initialize Logger"); Logger::init(None, Some(ll)).expect("could not initialize Logger");
} else { } else {
// less verbose version // less verbose version
Logger::init_mini(Some(ll)).expect("could not initialize Logger"); Logger::init_mini(Some(ll)).expect("could not initialize Logger");