summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-22 17:30:58 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-22 17:30:58 -0400
commit135d3733b3f31644705abaa34fc3c56cda4707bf (patch)
treefb04e9732581ce95ed0633c3bfe9eb5726e7369b /modules
parent3f707b3f3265c4b3e64e47ee172cc878f3325248 (diff)
downloadgitea-135d3733b3f31644705abaa34fc3c56cda4707bf.tar.gz
gitea-135d3733b3f31644705abaa34fc3c56cda4707bf.zip
Feature: Integrate crypto/tls/generate_cert.go command
Diffstat (limited to 'modules')
-rw-r--r--modules/log/log.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/log/log.go b/modules/log/log.go
index 8f4de1e1e9..4fb74d40c8 100644
--- a/modules/log/log.go
+++ b/modules/log/log.go
@@ -87,6 +87,12 @@ func Fatal(skip int, format string, v ...interface{}) {
os.Exit(1)
}
+func Close() {
+ for _, l := range loggers {
+ l.Close()
+ }
+}
+
// .___ __ _____
// | | _____/ |_ ____________/ ____\____ ____ ____
// | |/ \ __\/ __ \_ __ \ __\\__ \ _/ ___\/ __ \