~edwargix/tallyard

fe3d28ee78248d5cf375d1ced60914339ca1c3bb — David Florness 2 years ago 0dae71a
Properly close file
1 files changed, 1 insertions(+), 0 deletions(-)

M cmd/tallyard/main.go
M cmd/tallyard/main.go => cmd/tallyard/main.go +1 -0
@@ 38,6 38,7 @@ func main() {
	if err == nil {
		log.SetLevel(log.DebugLevel)
		log.SetOutput(file)
		defer file.Close()
	} else {
		log.Errorf("failed to open logging file; using default stderr: %s", err)
	}