fix ErrorOnlyArchiver logging Error, also when there is none
All checks were successful
go/archiver/pipeline/head This commit looks good
All checks were successful
go/archiver/pipeline/head This commit looks good
This commit is contained in:
parent
1449729882
commit
76c2a7be5e
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,9 @@ func NewErrorOnlyArchiver(conf *Config) func(string, error) {
|
|||
return func(filePath string, archiveErr error) {
|
||||
if archiveErr != nil {
|
||||
err := writeErrorFile(conf, filePath, archiveErr)
|
||||
logger.Error(err)
|
||||
if err != nil {
|
||||
logger.Error(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue