From 9b163660df8b01b1f7ba1dc7adc4bd0499dd5ee6 Mon Sep 17 00:00:00 2001 From: dre Date: Thu, 29 Jul 2021 20:12:18 +0800 Subject: [PATCH] add godoc and report badges --- README.md | 3 +++ main.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 960437f..c05fc8b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Go Report Card](https://goreportcard.com/badge/github.com/n0x1m/gmifs)](https://goreportcard.com/report/github.com/n0x1m/gmifs) +[![GoDoc](https://godoc.org/github.com/n0x1m/gmifs?status.svg)](https://godoc.org/github.com/n0x1m/gmifs) + # gmifs Gemini File Server, short gmifs, is intended to be minimal and serve static files. It is used diff --git a/main.go b/main.go index 839a12c..958a61b 100644 --- a/main.go +++ b/main.go @@ -152,7 +152,7 @@ func setupLogger(dir, filename string) (*log.Logger, error) { for { <-hup - logger.Println("rotating log file after SIGHUP") + // logger.Println("rotating log file after SIGHUP") _, err := setupFileLogging(logger, logpath) if err != nil { log.Fatalf("failed to rotate log file: %v", err)