Skip to content

Commit e846072

Browse files
committed
fixes for logger
1 parent e4667f7 commit e846072

File tree

8 files changed

+12
-7
lines changed

8 files changed

+12
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
RUST_LOG=info cargo r -r "/tmp" --cluster Localnet --enable-ui-service
1+
RUST_LOG=info cargo r -r start "/tmp"

readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Tinydancer - Half baked version (V0)
1+
# Tinydancer (V0)
22

33
## Architecture
44
The client is designed to be modular and easily extensible for additional functionality as this is the v0 and with every major version there may be a need for major changes and add-on services.
@@ -12,4 +12,8 @@ The client is designed to be modular and easily extensible for additional functi
1212
Build and add to path
1313
```
1414
cargo b -r && cp ./target/release/tinydancer ~/.local/bin/
15+
```
16+
Or install using cargo
17+
```
18+
cargo install --git https://github.com/tinydancer-io/half-baked-client tinydancer
1519
```

tinydancer-cli.tar.gz

-8.1 MB
Binary file not shown.

tinydancer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tinydancer"
3-
version = "0.0.5"
3+
version = "0.0.6"
44
edition = "2021"
55
default-run = "tinydancer"
66
authors = ["Anoushk Kharangate <[email protected]>"]

tinydancer/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ async fn main() {
271271
Ok(config_file) => {
272272
let is_verified =
273273
pull_and_verify_shreds(slot, get_endpoint(config_file.cluster)).await;
274-
println!("out: {:?}", is_verified);
274+
275275
if is_verified {
276276
println!(
277277
"Slot {} is {} ✓",

tinydancer/src/tinydancer.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ impl TinyDancer {
7979
let client_status = Arc::new(Mutex::new(status));
8080
let status_sampler = Arc::clone(&client_status);
8181

82-
tiny_logger::setup_file_with_default(&config.log_path, "RUST_LOG");
8382
let TinyDancerConfig {
8483
enable_ui_service,
8584
rpc_endpoint,
@@ -88,6 +87,8 @@ impl TinyDancer {
8887
log_path,
8988
archive_config,
9089
} = config.clone();
90+
std::env::set_var("RUST_LOG", "info");
91+
tiny_logger::setup_file_with_default(&log_path, "RUST_LOG");
9192
let rpc_cluster = rpc_endpoint.clone();
9293

9394
let mut opts = rocksdb::Options::default();

tinydancer/src/ui/ui.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl ClientService<UiConfig> for UiService {
224224
Spinner::new(spinners::Dots, "Initializing Client...", SpinColor::Yellow);
225225

226226
threads.push(std::thread::spawn(move || loop {
227-
sleep(Duration::from_secs(1));
227+
sleep(Duration::from_millis(100));
228228

229229
let status = client_status.lock().unwrap();
230230
match &*status {

0 commit comments

Comments
 (0)