summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-04-17 20:44:33 +0300
committerPaul Buetow <paul@buetow.org>2023-04-17 20:44:33 +0300
commit3ff14aa0c47994c6e09a1f11916ba13e7f8b3f9c (patch)
treeabdefe817e872838f39b09c38bd898bf4674f0d7 /main.go
parente40e22f69470b987bfb2c39b4a18df67f497739d (diff)
fix name in notification
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index d7df829..5227a1b 100644
--- a/main.go
+++ b/main.go
@@ -30,7 +30,7 @@ func main() {
stateChanged := state.update(name, status)
if status != ok || stateChanged {
- subject := fmt.Sprintf("GOGIOS %s: %s", codeToString(status), check.Name)
+ subject := fmt.Sprintf("GOGIOS %s: %s", codeToString(status), name)
notify(config, subject, output)
}
}