add some debug code

This commit is contained in:
yequari 2023-07-29 22:39:52 -07:00
parent a8dd860711
commit 1160727b62
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ func (app *application) siteEntryCreate(w http.ResponseWriter, r *http.Request)
func (app *application) nextSiteEntry(w http.ResponseWriter, r *http.Request) { func (app *application) nextSiteEntry(w http.ResponseWriter, r *http.Request) {
ref := app.cleanUrl(r.Referer()) ref := app.cleanUrl(r.Referer())
refSite, err := app.siteEntries.GetByUrl(ref) refSite, err := app.siteEntries.GetByUrl(ref)
app.infoLog.Printf("REFERER %s\n", ref)
if err != nil { if err != nil {
app.serverError(w, err) app.serverError(w, err)
return return