aptly icon indicating copy to clipboard operation
aptly copied to clipboard

Aptly API runs in debug mode

Open WilliamDEdwards opened this issue 3 years ago • 0 comments

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

WilliamDEdwards avatar Aug 29 '22 11:08 WilliamDEdwards