summaryrefslogtreecommitdiff
path: root/jakob/dynamic/notify.scm
diff options
context:
space:
mode:
Diffstat (limited to 'jakob/dynamic/notify.scm')
-rw-r--r--jakob/dynamic/notify.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/jakob/dynamic/notify.scm b/jakob/dynamic/notify.scm
index ff8763c..cdd2209 100644
--- a/jakob/dynamic/notify.scm
+++ b/jakob/dynamic/notify.scm
@@ -15,6 +15,7 @@
;;; <http://www.gnu.org/licenses/>.
(define-module (jakob dynamic notify)
+ #:use-module (jakob dynamic config)
#:use-module (json)
#:use-module (web client)
#:export (notify))
@@ -28,4 +29,5 @@
(format #f "https://~a/message?token=~a" gotify-base-url gotify-token))
(define body
(scm->json-string `((priority . ,priority) (title . ,title) (message . ,message))))
- (http-post url #:headers '((content-type . (application/json))) #:body body))
+ (unless (%debug-enabled)
+ (http-post url #:headers '((content-type . (application/json))) #:body body)))