publish: Display the compression method and level in use.

* guix/scripts/publish.scm (guix-publish): Use 'info' instead of
'format' for the initial message.  When COMPRESSION is true, display the
method and level in use.
This commit is contained in:
Ludovic Courtès 2019-05-27 22:38:15 +02:00
parent c131bea276
commit 35d1354fe8
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 9 additions and 4 deletions

View File

@ -987,10 +987,15 @@ consider using the '--user' option!~%")))
(parameterize ((%public-key public-key)
(%private-key private-key))
(format #t (G_ "publishing ~a on ~a, port ~d~%")
(info (G_ "publishing ~a on ~a, port ~d~%")
%store-directory
(inet-ntop (sockaddr:fam address) (sockaddr:addr address))
(sockaddr:port address))
(when compression
(info (G_ "using '~a' compression method, level ~a~%")
(compression-type compression) (compression-level compression)))
(when repl-port
(repl:spawn-server (repl:make-tcp-server-socket #:port repl-port)))