mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-10 05:37:44 +02:00
Merge branch 'refs/heads/development' into 49-add-htwkarte-linkout-at-ics-event-info
# Conflicts: # services/ical/main.go # services/ical/service/ical/ical.go # services/ical/service/routes.go
This commit is contained in:
@@ -39,8 +39,15 @@ func main() {
|
||||
}
|
||||
|
||||
grpcClient := grpc.ConnectGRPCServer(host)
|
||||
|
||||
// Close the grpc connection when the main function ends
|
||||
defer grpc.CloseGRPCServer(grpcClient)
|
||||
|
||||
// Log the grpc connection
|
||||
// Test the connection to the grpc server
|
||||
grpcClient.Connect()
|
||||
slog.Info("GRPC connection state", "state", grpcClient.GetState())
|
||||
|
||||
// Initialize a new Fiber app
|
||||
webdavRequestMethods := []string{"PROPFIND", "MKCOL", "COPY", "MOVE"}
|
||||
|
||||
@@ -64,7 +71,7 @@ func main() {
|
||||
|
||||
fiberApp.Use(logger.New(
|
||||
logger.Config{
|
||||
Format: "[${time}] ${status} - ${latency} ${method} ${path} ${error}\n",
|
||||
Format: "${time} | ${status} | ${latency} | ${method} - ${path} | ${error}\n",
|
||||
TimeFormat: "02-01-2006 15:04:05",
|
||||
},
|
||||
))
|
||||
|
Reference in New Issue
Block a user