Prettify FTP-LOG.
This commit is contained in:
parent
d07bf7beae
commit
fddc9bda46
|
@ -416,8 +416,9 @@
|
||||||
(string-join (cons str opt-args)))
|
(string-join (cons str opt-args)))
|
||||||
|
|
||||||
(define (ftp-log connection line)
|
(define (ftp-log connection line)
|
||||||
(let ((LOG (ftp-connection-logfd connection)))
|
(cond
|
||||||
(and LOG
|
((ftp-connection-logfd connection)
|
||||||
(write-string line LOG)
|
=> (lambda (log)
|
||||||
(write-string "\n" LOG)
|
(write-string line log)
|
||||||
(force-output LOG))))
|
(write-string "\n" log)
|
||||||
|
(force-output log)))))
|
||||||
|
|
Loading…
Reference in New Issue