a guest Jul 21st, 2019 54 Never
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."
- (let [it (iterator-seq logs)
- content (map #(.toString (.decode StandardCharsets/UTF_8 (.content ^LogMessage %))) it)]
- (mapcat #(string/split % #"\n") content)))
RAW Paste Data