mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-26 13:26:23 +02:00
switch from glog to standard log library
add "-verbose" flag for more logging. fixes #105
This commit is contained in:
parent
9654679655
commit
7338ef68ef
2 changed files with 30 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue