1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-28 09:21:13 -05:00

Merge branch 'master' of localhost:xiaoxiao/gogs6

Conflicts:
	.gitignore
This commit is contained in:
Lunny Xiao 2014-03-25 18:14:13 +08:00
commit 2ec111e1a2
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
gogs gogs
*.exe *.exe
*.exe~ *.exe~

View file

@ -46,8 +46,9 @@ gogs serv provide access auth for repositories`,
} }
func init() { func init() {
level := "0"
os.MkdirAll("log", os.ModePerm) os.MkdirAll("log", os.ModePerm)
log.NewLogger(10000, "file", fmt.Sprintf(`{"filename":"%s"}`, "log/serv.log")) log.NewLogger(10000, "file", fmt.Sprintf(`{"level":%s,"filename":"%s"}`, level, "log/serv.log"))
log.Info("start logging...") log.Info("start logging...")
} }