Skip to content

Commit

Permalink
-rc2
Browse files Browse the repository at this point in the history
Signed-off-by: Brian L. Troutwine <[email protected]>
  • Loading branch information
blt committed Dec 1, 2023
1 parent 4f7632b commit 9a5185a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [0.20.1-rc2]
### Changed
- Adjusted logging in block cache construction.

## [0.20.1-rc0]
### Changed
- Internal shutdown sequence is now changed to an advisory signal. There is no
Expand Down
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 lading/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lading"
version = "0.20.1-rc1"
version = "0.20.1-rc2"
authors = ["Brian L. Troutwine <[email protected]>", "George Hahn <[email protected]"]
edition = "2021"
license = "MIT"
Expand Down
6 changes: 5 additions & 1 deletion lading/src/bin/lading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use tokio::{
time::{sleep, Duration},
};
use tracing::{debug, error, info, warn};
use tracing_subscriber::{fmt::format::FmtSpan, util::SubscriberInitExt};

fn default_config_path() -> String {
"/etc/lading/lading.yaml".to_string()
Expand Down Expand Up @@ -444,7 +445,10 @@ fn run_extra_cmds(cmds: ExtraCommands) {
}

fn main() {
tracing_subscriber::fmt::init();
tracing_subscriber::fmt()
.with_span_events(FmtSpan::FULL)
.finish()
.init();

info!("Starting lading run.");
let opts: Opts = Opts::parse();
Expand Down
3 changes: 1 addition & 2 deletions lading_payload/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,6 @@ where
S: crate::Serialize,
R: Rng + ?Sized,
{
info!("Creating new block cache.");
let mut block_cache: Vec<Block> = Vec::with_capacity(block_chunks.len());
for block_size in block_chunks {
if let Some(block) = construct_block(&mut rng, serializer, *block_size) {
Expand All @@ -626,7 +625,7 @@ where
error!("Empty block cache, unable to construct blocks!");
Err(ConstructBlockCacheError::InsufficientBlockSizes)
} else {
info!("DONE");
info!(size = block_cache.len(), "Block cache constructed.");
Ok(block_cache)
}
}
Expand Down

0 comments on commit 9a5185a

Please sign in to comment.