Not so noisy when not modifying unchanged S3 objects

This commit is contained in:
Tony Garnock-Jones 2015-09-30 02:17:05 -04:00
parent 52bec4651a
commit f912945c1b

View File

@ -171,7 +171,9 @@
(define relative-path (absolute-path->relative-path absolute-path))
(define new-md5 (md5 content-bytes))
(if (equal? new-md5 (hash-ref index relative-path #f))
(log-info "Not uploading ~a to S3, since MD5 has not changed" relative-path)
(begin
;; (log-info "Not uploading ~a to S3, since MD5 has not changed" relative-path)
(void))
(begin
(log-info "Uploading ~a to S3; new MD5 = ~a" relative-path new-md5)
(put/bytes (string-append aws-s3-bucket+path relative-path)