File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -108,14 +108,15 @@ impl Collection {
108
108
)
109
109
. await ;
110
110
let path = OwnedObjectPath :: from ( item. path ( ) ) ;
111
- tracing:: info!( "Item: created: {}" , path) ;
112
111
113
112
connection
114
113
. object_server ( )
115
114
. at ( & path, item. clone ( ) )
116
115
. await
117
116
. unwrap ( ) ;
118
117
118
+ tracing:: info!( "Item: created: {}" , path) ;
119
+
119
120
let connection_out = Arc :: new ( connection. to_owned ( ) ) ;
120
121
let collection_path = header. path ( ) . unwrap ( ) . to_owned ( ) ;
121
122
Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ impl Item {
83
83
84
84
let secret = & crypto:: encrypt ( secret, key, iv. clone ( ) ) ;
85
85
86
+ tracing:: info!( "GetSecret called for item: {}" , self . path) ;
87
+
86
88
Ok ( ( SecretInner (
87
89
session. path ( ) . into ( ) ,
88
90
iv,
@@ -94,6 +96,8 @@ impl Item {
94
96
pub async fn set_secret ( & self , secret : Vec < u8 > ) {
95
97
let mut inner = self . inner . write ( ) . await ;
96
98
inner. set_secret ( secret) ;
99
+
100
+ tracing:: info!( "SetSecret called for item: {}. secret updated" , self . path) ;
97
101
}
98
102
99
103
#[ zbus( property, name = "Locked" ) ]
Original file line number Diff line number Diff line change @@ -200,6 +200,8 @@ impl Service {
200
200
. at ( prompt. path ( ) . to_owned ( ) , prompt. to_owned ( ) )
201
201
. await ?;
202
202
203
+ tracing:: info!( "Collection: /org/freedesktop/secrets/collection/login is unlocked" ) ;
204
+
203
205
Ok ( ( unlocked, prompt. path ( ) . to_owned ( ) ) )
204
206
}
205
207
@@ -282,6 +284,8 @@ impl Service {
282
284
// a prompt isn't required here. returning an empty objectpath: '/' is enough
283
285
let prompt = ObjectPath :: default ( ) ;
284
286
287
+ tracing:: info!( "Collection: /org/freedesktop/secrets/collection/login is locked" ) ;
288
+
285
289
Ok ( ( locked, prompt) )
286
290
}
287
291
@@ -364,6 +368,8 @@ impl Service {
364
368
365
369
let _ = Service :: collection_changed ( & ctxt, collection. path ( ) ) . await ;
366
370
371
+ tracing:: info!( "Collection: {} alias updated" , collection. path( ) ) ;
372
+
367
373
Ok ( ( ) )
368
374
}
369
375
None => {
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ impl Session {
24
24
) -> fdo:: Result < ( ) > {
25
25
self . manager . lock ( ) . unwrap ( ) . remove_session ( self . path ( ) ) ;
26
26
object_server. remove :: < Self , _ > ( & self . path ) . await ?;
27
+
27
28
tracing:: info!( "Session closed: {}" , self . path) ;
28
29
29
30
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments