File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 6666 cache-to : type=local,dest=/tmp/.buildx-cache
6767 build-args : |
6868 TibiadataBuildBuilder=github
69- TibiadataBuildRelease=${{ github.event.release.tag_name }}
69+ TibiadataBuildRelease=${{ github.ref_name }}
7070 TibiadataBuildCommit=${{ github.sha }}
Original file line number Diff line number Diff line change @@ -41,12 +41,8 @@ type Information struct {
4141}
4242
4343func main () {
44- // logging things on start of TibiaData
44+ // logging start of TibiaData
4545 log .Printf ("[info] TibiaData API starting.." )
46- log .Printf ("[info] TibiaData API release: %s" , TibiadataBuildRelease )
47- log .Printf ("[info] TibiaData API build: %s" , TibiadataBuildBuilder )
48- log .Printf ("[info] TibiaData API commit: %s" , TibiadataBuildCommit )
49- log .Printf ("[info] TibiaData API edition: %s" , TibiadataBuildEdition )
5046
5147 // setting application to ReleaseMode if DEBUG_MODE is false
5248 if ! getEnvAsBool ("DEBUG_MODE" , false ) {
@@ -128,6 +124,12 @@ func main() {
128124 })
129125 })
130126
127+ // logging build information
128+ log .Printf ("[info] TibiaData API release: %s" , TibiadataBuildRelease )
129+ log .Printf ("[info] TibiaData API build: %s" , TibiadataBuildBuilder )
130+ log .Printf ("[info] TibiaData API commit: %s" , TibiadataBuildCommit )
131+ log .Printf ("[info] TibiaData API edition: %s" , TibiadataBuildEdition )
132+
131133 // Start the router
132134 router .Run () // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
133135}
You can’t perform that action at this time.
0 commit comments