Skip to content

Commit 8d0f31f

Browse files
authored
Improve log message when PORT env not set
1 parent 4b6c4a9 commit 8d0f31f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func GetConfig() *Config {
9999
log.Printf("Set external port from environment -> %s", cfg.Server.ExternalPort)
100100
} else {
101101
cfg.Server.ExternalPort = cfg.Server.InternalPort
102-
log.Printf("Set external port from environment -> %s", cfg.Server.ExternalPort)
102+
log.Printf("Environment variable PORT not set; using internal port value -> %s", cfg.Server.ExternalPort)
103103
}
104104
if err != nil {
105105
log.Fatalf("Error in parse config %v", err)

0 commit comments

Comments
 (0)