Skip to content
Snippets Groups Projects
Unverified Commit 91de9bbc authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

Add date to SQL queries log file.

* src/cuirass/logging.scm (log-query): Add date.
parent cd89fc43
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,14 @@
(make-parameter #f))
(define (log-query query time)
(format (query-logging-port) "~a ~,2f~%"
(define now
(current-time time-utc))
(define date
(date->string (time-utc->date now) "~5"))
(format (query-logging-port) "~a ~a ~,2f~%"
date
(string-join
(string-tokenize query
(char-set-complement
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment