Skip to content

Commit 2604958

Browse files
committed
added more debug logs
1 parent 49e89d5 commit 2604958

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

main.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ func main() {
3838

3939
blockedEndpointJSON := os.Getenv("BLOCKED_ENDPOINTS")
4040

41+
log.Init("Loaded Environment Variables")
42+
4143
if blockedEndpointJSON != "" {
4244
var blockedEndpoints []string
4345

@@ -59,5 +61,11 @@ func main() {
5961
BLOCKED_ENDPOINTS),
6062
VARIABLES)
6163

62-
http.ListenAndServe("0.0.0.0:" + port, finalHandler)
64+
log.Info("Initialized Proxy Handler")
65+
66+
addr := "0.0.0.0:" + port
67+
68+
log.Info("Server Listening on ", addr)
69+
70+
http.ListenAndServe(addr, finalHandler)
6371
}

0 commit comments

Comments
 (0)