generated from PlexSheep/baserepo
Compare commits
5 commits
4772893e8f
...
c4e6be4e42
Author | SHA1 | Date | |
---|---|---|---|
c4e6be4e42 | |||
5f521fc00e | |||
a626067375 | |||
c968e44349 | |||
5443acef3e |
6 changed files with 8 additions and 7 deletions
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2023 Christoph Johannes Scherr
|
||||
Copyright (c) 2024 Christoph Johannes Scherr
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -75,7 +75,7 @@ impl Logger {
|
|||
/// Will enable the logger to be used.
|
||||
///
|
||||
/// Assumes some defaults, use [`init_customized`](Self::init_customized) for more control
|
||||
pub fn init(log_dir: Option<PathBuf>, max_level: Option<Level>) -> Result<()> {
|
||||
pub fn init(log_dir: Option<PathBuf>, max_level: Option<Level>, uptime: bool) -> Result<()> {
|
||||
Self::init_customized(
|
||||
log_dir.is_some(),
|
||||
log_dir.unwrap_or(PathBuf::from(DEFAULT_LOG_DIR)),
|
||||
|
@ -89,7 +89,7 @@ impl Logger {
|
|||
false,
|
||||
false,
|
||||
true,
|
||||
false,
|
||||
uptime,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,8 @@ git add -A
|
|||
git commit -m "Release v$NEW_VERSION" || (echo ">>>>>>>> COMMIT FAILED OR THERE WAS NOTHING TO COMMIT"; sleep 5)
|
||||
echo ">>>>>>>> SKIP!!!!!"
|
||||
cargo ws version --amend
|
||||
git push || (echo ">>>>>>>> PUSH FAILED OR THERE WAS NOTHING TO PUSH"; sleep 5)
|
||||
echo ">>>>>>>> PUBLISHING RELEASE FOR REPO"
|
||||
bash scripts/release.sh
|
||||
echo ">>>>>>>> PUBLISHING TO CRATES.IO NEXT"
|
||||
sleep 10
|
||||
cargo publish -p libpt-log
|
||||
|
|
|
@ -4,7 +4,7 @@ NEW_VERSION=$(cat Cargo.toml | rg '^\s*version\s*=\s*"([^"]*)"\s*$' -or '$1')
|
|||
VERSION=$(git rev-parse HEAD)
|
||||
GIT_COMMIT_SHA=$(git rev-parse HEAD)
|
||||
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
|
||||
git tag "v$NEW_VERSION-test" || echo "could not tag"
|
||||
|
|
|
@ -91,7 +91,7 @@ fn main() {
|
|||
}
|
||||
};
|
||||
if cli.log_meta {
|
||||
Logger::init(None, Some(ll)).expect("could not initialize Logger");
|
||||
Logger::init(None, Some(ll), false).expect("could not initialize Logger");
|
||||
} else {
|
||||
// less verbose version
|
||||
Logger::init_mini(Some(ll)).expect("could not initialize Logger");
|
||||
|
|
|
@ -165,7 +165,7 @@ fn cli_parse() -> Cli {
|
|||
}
|
||||
};
|
||||
if cli.meta {
|
||||
Logger::init(None, Some(ll)).expect("could not initialize Logger");
|
||||
Logger::init(None, Some(ll), false).expect("could not initialize Logger");
|
||||
} else {
|
||||
// less verbose version
|
||||
Logger::init_mini(Some(ll)).expect("could not initialize Logger");
|
||||
|
|
Reference in a new issue