args print with %q

This commit is contained in:
Antoni Sawicki 2020-04-27 12:29:18 -07:00
parent 4d911cb330
commit c64380dd72

2
wrp.go
View File

@ -436,7 +436,7 @@ func main() {
http.HandleFunc("/shutdown/", haltServer) http.HandleFunc("/shutdown/", haltServer)
http.HandleFunc("/favicon.ico", http.NotFound) http.HandleFunc("/favicon.ico", http.NotFound)
log.Printf("Web Rendering Proxy Version %s\n", version) log.Printf("Web Rendering Proxy Version %s\n", version)
log.Print(os.Args) log.Printf("Args: %q", os.Args)
log.Printf("Default Img Type: %v, Geometry: %+v", deftype, defgeom) log.Printf("Default Img Type: %v, Geometry: %+v", deftype, defgeom)
log.Printf("Starting WRP http server on %s\n", addr) log.Printf("Starting WRP http server on %s\n", addr)
srv.Addr = addr srv.Addr = addr