aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service
diff options
context:
space:
mode:
Diffstat (limited to 'guix-data-service')
-rw-r--r--guix-data-service/jobs/load-new-guix-revision.scm39
1 files changed, 19 insertions, 20 deletions
diff --git a/guix-data-service/jobs/load-new-guix-revision.scm b/guix-data-service/jobs/load-new-guix-revision.scm
index 7001333..2f1dfa4 100644
--- a/guix-data-service/jobs/load-new-guix-revision.scm
+++ b/guix-data-service/jobs/load-new-guix-revision.scm
@@ -35,6 +35,7 @@
#:use-module (guix build utils)
#:use-module (guix-data-service config)
#:use-module (guix-data-service database)
+ #:use-module (guix-data-service utils)
#:use-module (guix-data-service model build)
#:use-module (guix-data-service model channel-instance)
#:use-module (guix-data-service model channel-news)
@@ -1616,26 +1617,24 @@ SKIP LOCKED")
(if (or
(guix-revision-exists? conn git-repository-id commit)
(eq?
- (log-time
- (string-append "loading revision " commit)
- (lambda ()
- (setup-logging
- id
- (lambda ()
- (catch #t
- (lambda ()
- (with-store-connection
- (lambda (store)
- (load-new-guix-revision conn
- store
- git-repository-id
- commit))))
- (lambda (key . args)
- (simple-format
- (current-error-port)
- "error: load-new-guix-revision: ~A ~A\n"
- key args)
- #f))))))
+ (with-time-logging (string-append "loading revision " commit)
+ (setup-logging
+ id
+ (lambda ()
+ (catch #t
+ (lambda ()
+ (with-store-connection
+ (lambda (store)
+ (load-new-guix-revision conn
+ store
+ git-repository-id
+ commit))))
+ (lambda (key . args)
+ (simple-format
+ (current-error-port)
+ "error: load-new-guix-revision: ~A ~A\n"
+ key args)
+ #f)))))
#t))
(begin
(record-job-succeeded conn id)