@@ -16,7 +16,7 @@ use chrono::TimeZone;
16
16
use chrono:: { DateTime , Local , Utc } ;
17
17
use derive_setters:: Setters ;
18
18
use ignore:: { overrides:: OverrideBuilder , DirEntry , Walk , WalkBuilder } ;
19
- use log:: { debug , warn} ;
19
+ use log:: warn;
20
20
#[ cfg( not( windows) ) ]
21
21
use nix:: unistd:: { Gid , Group , Uid , User } ;
22
22
@@ -488,7 +488,7 @@ fn list_extended_attributes(path: &Path) -> RusticResult<Vec<ExtendedAttribute>>
488
488
/// * [`IgnoreErrorKind::ErrorXattr`] - if Xattr couldn't be listed or couldn't be read
489
489
#[ cfg( all( not( windows) , not( target_os = "openbsd" ) ) ) ]
490
490
fn list_extended_attributes ( path : & Path ) -> RusticResult < Vec < ExtendedAttribute > > {
491
- Ok ( xattr:: list ( path)
491
+ xattr:: list ( path)
492
492
. map_err ( |err| IgnoreErrorKind :: ErrorXattr {
493
493
path : path. to_path_buf ( ) ,
494
494
source : err,
@@ -504,7 +504,7 @@ fn list_extended_attributes(path: &Path) -> RusticResult<Vec<ExtendedAttribute>>
504
504
. unwrap ( ) ,
505
505
} )
506
506
} )
507
- . collect :: < RusticResult < Vec < ExtendedAttribute > > > ( ) ? )
507
+ . collect :: < RusticResult < Vec < ExtendedAttribute > > > ( )
508
508
}
509
509
510
510
/// Maps a [`DirEntry`] to a [`ReadSourceEntry`].
@@ -568,14 +568,7 @@ fn map_entry(
568
568
569
569
let extended_attributes = match list_extended_attributes ( entry. path ( ) ) {
570
570
Err ( e) => {
571
- // TODO - discuss this log:
572
- // Most probably that if Xattr read failure happens for one file,
573
- // it will also happen for every file in the same subdirectory.
574
- //
575
- // The end result would be a real flood of errors.
576
- // For this reason, I propose to have this log at "debug" level
577
- // so it's not transparent, but doesn't impact a "lambda" use case of rustic.
578
- debug ! ( "ignoring error: {e}\n " ) ;
571
+ warn ! ( "ignoring error: {e}\n " ) ;
579
572
vec ! [ ]
580
573
}
581
574
Ok ( xattr_list) => xattr_list,
0 commit comments