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