print architecture

This commit is contained in:
Antoni Sawicki 2024-05-23 00:34:00 -07:00
parent 67ed26b8f4
commit f93058fed3

6
wrp.go
View File

@ -1,7 +1,7 @@
//
// WRP - Web Rendering Proxy
//
// Copyright (c) 2013-2018 Antoni Sawicki
// Copyright (c) 2013-2024 Antoni Sawicki
// Copyright (c) 2019-2024 Google LLC
//
@ -29,6 +29,7 @@ import (
"net/url"
"os"
"os/signal"
"runtime"
"strconv"
"strings"
"syscall"
@ -548,8 +549,9 @@ func printIPs(b string) {
// Main
func main() {
var err error
log.SetFlags(log.LstdFlags | log.Lshortfile)
flag.Parse()
log.Printf("Web Rendering Proxy Version %s\n", version)
log.Printf("Web Rendering Proxy Version %s (%v)\n", version, runtime.GOARCH)
log.Printf("Args: %q", os.Args)
if len(os.Getenv("PORT")) > 0 {
*addr = ":" + os.Getenv(("PORT"))