Skip to content

Commit

Permalink
Fix server logging, powered by header and app_name (#302)
Browse files Browse the repository at this point in the history
Signed-off-by: Aravinda Vishwanathapura <[email protected]>
  • Loading branch information
aravindavk authored Jan 29, 2023
1 parent ca7bee8 commit be6387d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mgr/src/server/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ module StorageMgr

Log.info &.emit("Starting the Storage manager ReST API server", port: "#{Kemal.config.port}")

logger StorageManagerAPILogHandler.new
add_handler ApiExceptionHandler.new
add_handler MgrRequestsProxyHandler.new
add_handler AuthHandler.new
Expand All @@ -174,7 +175,8 @@ module StorageMgr
Kemal.run do |config|
# TODO: Enable/Disable access logging if configured
# Kemal.config.logging = false
config.logger = StorageManagerAPILogHandler.new
config.app_name = "Kadalu Storage"
config.powered_by_header = false
server = config.server.not_nil!
server.bind_tcp "0.0.0.0", 3000, reuse_port: true
end
Expand Down

0 comments on commit be6387d

Please sign in to comment.