readded banner

This commit is contained in:
gempir 2017-09-14 20:58:37 +02:00
parent f070003222
commit c22280e432
2 changed files with 1 additions and 8 deletions

View file

@ -24,7 +24,7 @@ func NewServer() Server {
func (s *Server) Init() {
e := echo.New()
e.HideBanner = true
//e.HideBanner = true
e.GET("/", func(c echo.Context) error {
return c.String(http.StatusOK, "Hello, World!")

View file

@ -1,18 +1,11 @@
package main
import (
"reflect"
"testing"
"github.com/stretchr/testify/assert"
)
func TestCanInitLogger(t *testing.T) {
log := initLogger()
assert.Equal(t, "logging.Logger", reflect.TypeOf(log).String(), "logger has invalid type")
}
func TestCanReadConfig(t *testing.T) {
cfg, err := readConfig("configs/config.example.json")
if err != nil {