@@ -146,27 +146,27 @@ function get_auth_middleware(config :: Dict)
146
146
end
147
147
148
148
function start_server (config_path)
149
- println ( " Launching server...please wait" )
149
+ @info " Launching server...please wait"
150
150
151
- println ( " Parsing configuration from $(config_path) ..." )
151
+ @info " Parsing configuration from $(config_path) ..."
152
152
config = TOML. parsefile (config_path)
153
- println ( " Successfully parsed configuration." )
153
+ @info " Successfully parsed configuration."
154
154
155
155
# setting up middleware
156
- println ( " Setting up middleware." )
156
+ @info " Setting up middleware."
157
157
auth = get_middleware (config)
158
- println ( " Done." )
158
+ @info " Done."
159
159
160
- println ( " Setting up region routes..." )
160
+ @info " Setting up region routes..."
161
161
setup_region_routes (config, auth)
162
- println ( " Completed region routes setup." )
162
+ @info " Completed region routes setup."
163
163
164
- println ( " Setting up tile routes..." )
164
+ @info " Setting up tile routes..."
165
165
setup_tile_routes (auth)
166
- println ( " Completed tile routes setup." )
166
+ @info " Completed tile routes setup."
167
167
168
- println ( " Initialisation complete, starting server on port 8000." )
169
- println ( " Starting with $(Threads. nthreads ()) threads..." )
168
+ @info " Initialisation complete, starting server on port 8000."
169
+ @info " Starting with $(Threads. nthreads ()) threads..."
170
170
if Threads. nthreads () > 1
171
171
serveparallel (middleware= [CorsMiddleware], host= " 0.0.0.0" , port= 8000 )
172
172
else
0 commit comments