add some debug code
This commit is contained in:
parent
a8dd860711
commit
1160727b62
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue