The call to if gin.Debugging() to determine the log level is unnecessary since gin is setup later in the main-method, so this call is always false
if gin.Debugging()