@@ -20,7 +20,7 @@ use pdu::{
2020 FileContentsResponse , FileDescriptor , FormatDataRequest , FormatListResponse , LockDataId , OwnedFormatDataResponse ,
2121 PackedFileList ,
2222} ;
23- use tracing:: { debug, error, info , trace, warn} ;
23+ use tracing:: { debug, error, trace, warn} ;
2424
2525#[ rustfmt:: skip] // do not reorder
2626use crate :: pdu:: FormatList ;
@@ -620,11 +620,11 @@ impl<R: Role> Cliprdr<R> {
620620 FormatListResponse :: Ok => {
621621 if !R :: is_server ( ) {
622622 if self . state == CliprdrState :: Initialization {
623- info ! ( "Clipboard virtual channel initialized" ) ;
623+ debug ! ( "Clipboard virtual channel initialized" ) ;
624624 self . state = CliprdrState :: Ready ;
625625 self . backend . on_ready ( ) ;
626626 } else {
627- info ! ( "Remote accepted format list" ) ;
627+ trace ! ( "Remote accepted format list" ) ;
628628 }
629629 }
630630 self . backend . on_format_list_response ( true ) ;
@@ -640,7 +640,7 @@ impl<R: Role> Cliprdr<R> {
640640 self . local_drop_effect_format_id = None ;
641641
642642 if !self . sent_file_contents_requests . is_empty ( ) {
643- info ! (
643+ debug ! (
644644 count = self . sent_file_contents_requests. len( ) ,
645645 "Clearing pending file contents requests due to FormatListResponse::Fail"
646646 ) ;
@@ -664,7 +664,7 @@ impl<R: Role> Cliprdr<R> {
664664
665665 fn handle_format_list ( & mut self , format_list : FormatList < ' _ > ) -> PduResult < Vec < SvcMessage > > {
666666 if R :: is_server ( ) && self . state == CliprdrState :: Initialization {
667- info ! ( "Clipboard virtual channel initialized" ) ;
667+ debug ! ( "Clipboard virtual channel initialized" ) ;
668668 self . state = CliprdrState :: Ready ;
669669 self . backend . on_ready ( ) ;
670670 }
@@ -740,7 +740,7 @@ impl<R: Role> Cliprdr<R> {
740740 if let Some ( format) = file_list_format {
741741 // Store the format ID for later use when user initiates paste
742742 self . remote_file_list_format_id = Some ( format. id ) ;
743- info ! ( format_id = ?format. id, "FileGroupDescriptorW format available in FormatList" ) ;
743+ trace ! ( format_id = ?format. id, "FileGroupDescriptorW format available in FormatList" ) ;
744744 }
745745
746746 // [MS-RDPECLIP] 3.1.5.2.2 - Acknowledge the FormatList before any
@@ -830,7 +830,7 @@ impl<R: Role> Cliprdr<R> {
830830 } else {
831831 match self . state {
832832 CliprdrState :: Ready => {
833- info ! ( "User initiated copy, sending format list" ) ;
833+ trace ! ( "User initiated copy, sending format list" ) ;
834834 pdus. push ( ClipboardPdu :: FormatList (
835835 self . build_format_list ( available_formats) . map_err ( |e| encode_err ! ( e) ) ?,
836836 ) ) ;
@@ -863,7 +863,7 @@ impl<R: Role> Cliprdr<R> {
863863 self . pending_format_data_request = Some ( requested_format) ;
864864
865865 if Some ( requested_format) == self . remote_file_list_format_id {
866- info ! ( format_id = ?requested_format, "User initiated paste for FileGroupDescriptorW" ) ;
866+ trace ! ( format_id = ?requested_format, "User initiated paste for FileGroupDescriptorW" ) ;
867867 }
868868
869869 let pdu = ClipboardPdu :: FormatDataRequest ( FormatDataRequest {
@@ -972,7 +972,7 @@ impl<R: Role> Cliprdr<R> {
972972 self . outgoing_locks . insert ( clip_data_id, lock) ;
973973 self . current_lock_id = Some ( clip_data_id) ;
974974
975- info ! ( clip_data_id, "Sent clipboard lock" ) ;
975+ trace ! ( clip_data_id, "Sent clipboard lock" ) ;
976976
977977 let pdu = ClipboardPdu :: LockData ( LockDataId ( clip_data_id) ) ;
978978 Some ( vec ! [ into_cliprdr_message( pdu) ] )
@@ -1015,7 +1015,7 @@ impl<R: Role> Cliprdr<R> {
10151015 self . current_lock_id = None ;
10161016
10171017 if !newly_expired. is_empty ( ) {
1018- info ! (
1018+ debug ! (
10191019 count = newly_expired. len( ) ,
10201020 inactivity_timeout_secs = self . lock_inactivity_timeout. as_secs( ) ,
10211021 max_lifetime_secs = self . lock_max_lifetime. as_secs( ) ,
@@ -1052,7 +1052,7 @@ impl<R: Role> Cliprdr<R> {
10521052 self . outgoing_locks . clear ( ) ;
10531053 self . current_lock_id = None ;
10541054
1055- info ! (
1055+ debug ! (
10561056 count = cleared. len( ) ,
10571057 "Releasing outgoing locks before taking clipboard ownership"
10581058 ) ;
@@ -1159,7 +1159,7 @@ impl<R: Role> Cliprdr<R> {
11591159
11601160 // Log cleanup summary
11611161 if !expired_ids. is_empty ( ) {
1162- info ! (
1162+ debug ! (
11631163 count = expired_ids. len( ) ,
11641164 clip_data_ids = ?expired_ids,
11651165 "Automatic lock cleanup completed"
@@ -1202,7 +1202,7 @@ impl<R: Role> Cliprdr<R> {
12021202 }
12031203
12041204 if !stale_stream_ids. is_empty ( ) {
1205- info ! (
1205+ debug ! (
12061206 count = stale_stream_ids. len( ) ,
12071207 "Stale file contents request cleanup completed"
12081208 ) ;
@@ -1230,7 +1230,7 @@ impl<R: Role> Cliprdr<R> {
12301230 }
12311231
12321232 if !stale_lock_ids. is_empty ( ) {
1233- info ! ( count = stale_lock_ids. len( ) , "Upload inactivity cleanup completed" ) ;
1233+ debug ! ( count = stale_lock_ids. len( ) , "Upload inactivity cleanup completed" ) ;
12341234 }
12351235
12361236 Ok ( messages. into ( ) )
@@ -1529,7 +1529,7 @@ impl<R: Role> Cliprdr<R> {
15291529 . collect ( ) ;
15301530
15311531 if validated_files. len ( ) < original_count {
1532- info ! (
1532+ debug ! (
15331533 total = original_count,
15341534 valid = validated_files. len( ) ,
15351535 "File list validation completed with warnings"
@@ -1632,7 +1632,7 @@ impl<R: Role> SvcProcessor for Cliprdr<R> {
16321632 }
16331633
16341634 if let Some ( ref file_list) = self . local_file_list {
1635- info ! ( clip_data_id = id. 0 , "Locking clipboard with file list snapshot" ) ;
1635+ debug ! ( clip_data_id = id. 0 , "Locking clipboard with file list snapshot" ) ;
16361636 self . locked_file_lists . insert ( id. 0 , file_list. clone ( ) ) ;
16371637 self . locked_file_list_activity . insert ( id. 0 , self . backend . now_ms ( ) ) ;
16381638 } else {
@@ -1652,7 +1652,7 @@ impl<R: Role> SvcProcessor for Cliprdr<R> {
16521652 // Release the file list snapshot associated with this clipDataId.
16531653 if self . locked_file_lists . remove ( & id. 0 ) . is_some ( ) {
16541654 self . locked_file_list_activity . remove ( & id. 0 ) ;
1655- info ! (
1655+ debug ! (
16561656 clip_data_id = id. 0 ,
16571657 "Unlocking clipboard and releasing file list snapshot"
16581658 ) ;
@@ -1681,7 +1681,7 @@ impl<R: Role> SvcProcessor for Cliprdr<R> {
16811681 if Some ( request. format ) == self . local_file_list_format_id {
16821682 if let Some ( ref file_list) = self . local_file_list {
16831683 // Respond with the stored file list
1684- info ! (
1684+ debug ! (
16851685 format_id = ?request. format,
16861686 file_count = file_list. files. len( ) ,
16871687 "Responding to FileGroupDescriptorW request with stored file list"
@@ -1752,7 +1752,7 @@ impl<R: Role> SvcProcessor for Cliprdr<R> {
17521752 }
17531753 }
17541754
1755- info ! (
1755+ debug ! (
17561756 file_count = file_list. files. len( ) ,
17571757 "Received FileGroupDescriptorW from remote"
17581758 ) ;
0 commit comments