Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn logs-seq
- "Convert a docker-client ^LogStream to a seq of lines."
- [logs]
- (let [it (iterator-seq logs)
- content (map #(.toString (.decode StandardCharsets/UTF_8 (.content ^LogMessage %))) it)]
- (mapcat #(string/split % #"\n") content)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement