Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion unbound_exporter.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017 Kumina, https://kumina.nl/

Check failure on line 1 in unbound_exporter.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, ubuntu-latest)

: # github.com/letsencrypt/unbound_exporter [github.com/letsencrypt/unbound_exporter.test]
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand Down Expand Up @@ -558,7 +558,8 @@
)
flag.Parse()

log.Info("Starting unbound_exporter")
_ = level.Info(log).Log("msg", "Starting unbound_exporter", "version", version.Info())

Check failure on line 561 in unbound_exporter.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, ubuntu-latest)

undefined: version (typecheck)

Check failure on line 561 in unbound_exporter.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, ubuntu-latest)

undefined: level

exporter, err := NewUnboundExporter(*unboundHost, *unboundCa, *unboundCert, *unboundKey)
if err != nil {
panic(err)
Expand All @@ -576,6 +577,7 @@
</body>
</html>`))
})

{
address, port, err := net.SplitHostPort(*listenAddress)
if err != nil {
Expand Down
Loading