mirror of
https://github.com/taoensso/telemere.git
synced 2025-12-17 09:51:12 +00:00
[fix] [#14] File handler: Don't truncate gzip output
This commit is contained in:
parent
6e94215e7a
commit
2d4b049717
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@
|
||||||
stream-out (java.io.FileOutputStream. file-out)
|
stream-out (java.io.FileOutputStream. file-out)
|
||||||
gz-out (java.util.zip.GZIPOutputStream. stream-out 2048 false)]
|
gz-out (java.util.zip.GZIPOutputStream. stream-out 2048 false)]
|
||||||
|
|
||||||
(let [read-buffer (byte-array 4096)]
|
(let [read-buffer (byte-array (.length file-in))]
|
||||||
(loop []
|
(loop []
|
||||||
(let [bytes-read (.read stream-in read-buffer)]
|
(let [bytes-read (.read stream-in read-buffer)]
|
||||||
(when-not (== -1 bytes-read)
|
(when-not (== -1 bytes-read)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue