Fix bug related to log
Merge branch 'dev' of github.com:gogits/gogs into dev