switch from glog to standard log library

add "-verbose" flag for more logging.

fixes #105
This commit is contained in:
Will Norris 2017-08-30 05:21:56 +00:00
parent 9654679655
commit 7338ef68ef
2 changed files with 30 additions and 11 deletions

View file

@ -44,6 +44,7 @@ var cache = flag.String("cache", "", "location to cache images (see https://gith
var signatureKey = flag.String("signatureKey", "", "HMAC key used in calculating request signatures")
var scaleUp = flag.Bool("scaleUp", false, "allow images to scale beyond their original dimensions")
var timeout = flag.Duration("timeout", 0, "time limit for requests served by this proxy")
var verbose = flag.Bool("verbose", false, "print verbose logging messages")
var version = flag.Bool("version", false, "Deprecated: this flag does nothing")
func main() {
@ -83,6 +84,7 @@ func main() {
p.Timeout = *timeout
p.ScaleUp = *scaleUp
p.Verbose = *verbose
server := &http.Server{
Addr: *addr,