Skip to content

Commit d2cd4f2

Browse files
wiiznokeswash2
authored andcommitted
change warn to debug
1 parent 593e397 commit d2cd4f2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bin/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ async fn main() {
3737
}
3838
}
3939

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

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

5857
if let Ok(file) = logfile {
5958
if let Ok(meta) = file.metadata() {
60-
if meta.len() > 10000 {
59+
if meta.len() > 1000 {
6160
let _ = file.set_len(0);
6261
}
6362
}
@@ -68,6 +67,8 @@ fn init_logging(cmd: &str) {
6867

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

70+
// would be nice to implement this tracing issue
71+
// for journald https://github.com/tokio-rs/tracing/issues/2348
7172
if let Ok(journal_layer) = tracing_journald::layer() {
7273
tracing_subscriber::registry()
7374
.with(journal_layer)

plugins/src/cosmic_toplevel/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub async fn main() {
9393

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

0 commit comments

Comments
 (0)