Skip to content

Commit

Permalink
change warn to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wiiznokes committed Jul 11, 2024
1 parent 4966c75 commit 26170d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ async fn main() {
}
}

// todo: support journald once this issue is resolved: https://github.com/tokio-rs/tracing/issues/2348
fn init_logging(cmd: &str) {
use tracing_subscriber::{fmt, layer::SubscriberExt, util::SubscriberInitExt, EnvFilter};

Expand All @@ -57,7 +56,7 @@ fn init_logging(cmd: &str) {

if let Ok(file) = logfile {
if let Ok(meta) = file.metadata() {
if meta.len() > 10000 {
if meta.len() > 1000 {
let _ = file.set_len(0);
}
}
Expand All @@ -68,6 +67,8 @@ fn init_logging(cmd: &str) {

let fmt_layer = fmt::layer().with_target(false).with_writer(file);

// would be nice to implement this tracing issue
// for journald https://github.com/tokio-rs/tracing/issues/2348
if let Ok(journal_layer) = tracing_journald::layer() {
tracing_subscriber::registry()
.with(journal_layer)
Expand Down
2 changes: 1 addition & 1 deletion plugins/src/cosmic_toplevel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub async fn main() {

if let Some(pos) = app.toplevels.iter().position(|t| t.0 == handle) {
if info.state.contains(&State::Activated) {
tracing::warn!("Update {:?}: push front", &info.app_id);
tracing::debug!("Update {:?}: push front", &info.app_id);
app.toplevels.remove(pos);
app.toplevels.push_front((handle, info));
} else {
Expand Down

0 comments on commit 26170d8

Please sign in to comment.