summaryrefslogtreecommitdiff
path: root/cmd/check/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/check/main.go')
-rw-r--r--cmd/check/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/check/main.go b/cmd/check/main.go
index 5a00781..a6a8fa3 100644
--- a/cmd/check/main.go
+++ b/cmd/check/main.go
@@ -31,7 +31,8 @@ func main() {
os.Exit(1)
}
- logger.Configure(config)
+ logCloser := logger.Configure(config)
+ defer logCloser.Close()
cmd, err := command.New(executable, os.Args[1:], sshenv.Env{}, config, readWriter)
if err != nil {