Improve logging again.

The user experience is greatly enhanced by this little change, where you
know from the logs that pgloader could actually connect rather than
thinking it might be still trying...
This commit is contained in:
Dimitri Fontaine 2015-08-20 12:38:19 +02:00
parent ba44e9786d
commit 3a6120b931
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@
`(let (#+unix (cl-postgres::*unix-socket-dir* (get-unix-socket-dir ,pgconn)))
(with-connection (conn ,pgconn)
(let ((pomo:*database* (conn-handle conn)))
(log-message :debug "CONNECT ~s" conn)
(log-message :debug "CONNECTED TO ~s" conn)
(set-session-gucs *pg-settings*)
(handling-pgsql-notices
,@forms)))))

View File

@ -64,7 +64,7 @@
:username (db-user myconn)
:password (db-pass myconn)
:database (db-name myconn))))
(log-message :debug "CONNECT ~a" myconn)
(log-message :debug "CONNECTED TO ~a" myconn)
;; return the connection object
myconn)