aptly
aptly copied to clipboard
Aptly API runs in debug mode
Detailed Description
When running aptly api serve, I see the following messages:
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
Context
For a production API, the default should not be set to debug.
Possible Implementation
Set the default mode to 'release'.
Your Environment
aptly version: 1.4.0+ds1-4+b4