e072aa333c88 — russes02 11 years ago
Fixes keeping of failed images
1 files changed, 3 insertions(+), 3 deletions(-)

M autocompare/main.go
M autocompare/main.go +3 -3
@@ 263,9 263,9 @@ func startComparisons(pageStream chan Pa
 				page.SetCopy("")
 				urlStream <- page
 			} else {
-				if !keep {
-					log.Printf("image %s  %s", page.OriginURL(), page.OriginImage())
-					log.Printf("image %s  %s", page.CopyURL(), page.CopyImage())
+				if keep {
+					log.Printf("image %s %s %s %s %s", page.Subdomain(), page.OriginURL(), page.OriginImage(), page.CopyURL(), page.CopyImage())
+				} else {
 					os.Remove(page.OriginImage())
 					os.Remove(page.CopyImage())
 				}