logpolicy: report the correct error

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur 2020-05-01 10:51:19 +02:00 committed by Brad Fitzpatrick
parent 0068e57407
commit 7b901fdbbc

View File

@ -206,7 +206,7 @@ func New(collection string) *Policy {
os.Args)
log.Printf("LogID: %v\n", newc.PublicID)
if filchErr != nil {
log.Printf("filch failed: %v", err)
log.Printf("filch failed: %v", filchErr)
}
return &Policy{