Skip to content

Commit

Permalink
log without prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
sorawee committed Jul 14, 2023
1 parent b5fc310 commit 3d986e9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,16 @@

(define all-lines (string-split s "\n"))

(log-fmt-debug "([duration ~a] [lines ~a] [tainted? ~a])"
(exact->inexact (/ real 1000))
(length all-lines)
(if tainted? "true" "false"))
(log-message
fmt-logger
'debug
'fmt
(format "([duration ~a] [lines ~a] [tainted? ~a])"
(exact->inexact (/ real 1000))
(length all-lines)
(if tainted? "true" "false"))
#f
#f)

(string-join (for/list ([line (in-list all-lines)])
(string-trim line #:left? #f))
Expand Down

0 comments on commit 3d986e9

Please sign in to comment.