Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jfa-go/commit/a220ba8dfb58c2834a0b2606248004d7a0b020fa You should set ROOT_URL correctly, otherwise the web may not work correctly.

fix NewEmptyLogger

for .
Dumb bug, I really need unit tests.
pull/163/head
Harvey Tindall 4 years ago
parent b29c24a405
commit a220ba8dfb
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -60,7 +60,12 @@ func NewLogger(out io.Writer, prefix string, flag int, color c.Attribute) (l *Lo
return l
}
func NewEmptyLogger() (l *Logger) { l.empty = true; return }
func NewEmptyLogger() (l *Logger) {
l = &Logger{
empty: true,
}
return
}
func (l *Logger) Printf(format string, v ...interface{}) {
if l.empty {

Loading…
Cancel
Save