remove panic from log.go