Changeset 129 in code for trunk/morty.go


Ignore:
Timestamp:
Jul 14, 2020, 9:24:04 PM (5 years ago)
Author:
asciimoo
Message:

[enh] add more verbose debug messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/morty.go

    r128 r129  
    343343
    344344        if cfg.Debug {
    345                 log.Println("getting", requestURIStr)
     345                log.Println(string(ctx.Method()), requestURIStr)
    346346        }
    347347
     
    422422                        // deny access to forbidden content type
    423423                        // HTTP status code 403 : Forbidden
    424                         p.serveMainPage(ctx, 403, errors.New("forbidden content type"))
     424                        p.serveMainPage(ctx, 403, errors.New("forbidden content type "+parsedURI.String()))
    425425                        return
    426426                }
Note: See TracChangeset for help on using the changeset viewer.