This commit is contained in:
2020-12-30 11:31:17 -05:00
parent 46963ab2d6
commit 970d003e2f
2 changed files with 1 additions and 2 deletions

View File

@ -12,6 +12,7 @@ import (
func reqPass(w http.ResponseWriter, r *http.Request) { func reqPass(w http.ResponseWriter, r *http.Request) {
defer log.PanicSafe() defer log.PanicSafe()
log.LogInfo("reqPass called.")
username := r.FormValue("UserName") username := r.FormValue("UserName")
var userID string var userID string
g, err := dg.Guild(config.GuildID) g, err := dg.Guild(config.GuildID)

View File

@ -20,7 +20,6 @@ var (
func topWrapper(r *http.Request) string { func topWrapper(r *http.Request) string {
defer log.PanicSafe() defer log.PanicSafe()
log.LogInfo(fmt.Sprintf("%s called topWrapper", getSessionIdentifier(r)))
headerTemplate, err := ioutil.ReadFile("./static/header.tpl") headerTemplate, err := ioutil.ReadFile("./static/header.tpl")
if err != nil { if err != nil {
log.LogError(fmt.Sprintf("Unable to open header template: ```%+v```", err)) log.LogError(fmt.Sprintf("Unable to open header template: ```%+v```", err))
@ -38,7 +37,6 @@ func topWrapper(r *http.Request) string {
func bodyWrapper(r *http.Request, template string) string { func bodyWrapper(r *http.Request, template string) string {
defer log.PanicSafe() defer log.PanicSafe()
log.LogInfo(fmt.Sprintf("%s called bodyWrapper", getSessionIdentifier(r)))
bodyTemplate, err := ioutil.ReadFile(fmt.Sprintf("./static/%+v.tpl", template)) bodyTemplate, err := ioutil.ReadFile(fmt.Sprintf("./static/%+v.tpl", template))
if err != nil { if err != nil {
log.LogError(fmt.Sprintf("Attempt to load %s.tpl failed. ```%+v```", template, err)) log.LogError(fmt.Sprintf("Attempt to load %s.tpl failed. ```%+v```", template, err))