Some logging refactoring.

Fixes #14.
This commit is contained in:
2020-02-29 23:30:44 +05:00
parent 5f58741159
commit 825fd724ff
9 changed files with 43 additions and 47 deletions

View File

@@ -73,7 +73,7 @@ func GetRawTemplate(ec echo.Context, templateName string, data map[string]string
// GetTemplate returns formatted template that can be outputted to client.
func GetTemplate(ec echo.Context, name string, data map[string]string) string {
log.Debug().Msgf("Requested template '%s'", name)
log.Debug().Str("name", name).Msg("Requested template")
// Getting main template.
mainhtml, err := static.ReadFile("main.html")