File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
plugins/src/cosmic_toplevel Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ async fn main() {
37
37
}
38
38
}
39
39
40
- // todo: support journald once this issue is resolved: https://github.com/tokio-rs/tracing/issues/2348
41
40
fn init_logging ( cmd : & str ) {
42
41
use tracing_subscriber:: { fmt, layer:: SubscriberExt , util:: SubscriberInitExt , EnvFilter } ;
43
42
@@ -57,7 +56,7 @@ fn init_logging(cmd: &str) {
57
56
58
57
if let Ok ( file) = logfile {
59
58
if let Ok ( meta) = file. metadata ( ) {
60
- if meta. len ( ) > 10000 {
59
+ if meta. len ( ) > 1000 {
61
60
let _ = file. set_len ( 0 ) ;
62
61
}
63
62
}
@@ -68,6 +67,8 @@ fn init_logging(cmd: &str) {
68
67
69
68
let fmt_layer = fmt:: layer ( ) . with_target ( false ) . with_writer ( file) ;
70
69
70
+ // would be nice to implement this tracing issue
71
+ // for journald https://github.com/tokio-rs/tracing/issues/2348
71
72
if let Ok ( journal_layer) = tracing_journald:: layer ( ) {
72
73
tracing_subscriber:: registry ( )
73
74
. with ( journal_layer)
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ pub async fn main() {
93
93
94
94
if let Some ( pos) = app. toplevels . iter ( ) . position ( |t| t. 0 == handle) {
95
95
if info. state . contains ( & State :: Activated ) {
96
- tracing:: warn !( "Update {:?}: push front" , & info. app_id) ;
96
+ tracing:: debug !( "Update {:?}: push front" , & info. app_id) ;
97
97
app. toplevels . remove ( pos) ;
98
98
app. toplevels . push_front ( ( handle, info) ) ;
99
99
} else {
You can’t perform that action at this time.
0 commit comments