logging tested, so tick that off the list
This commit is contained in:
@@ -10,7 +10,7 @@ After the point where it reaches feature parity with Venice circa 2006.
|
||||
* ~~Gitea-like status page showing Go-specific internals.~~
|
||||
* Build static Tailwind CSS file rather than using remote-loaded version. (Gate on debug/prod flag)
|
||||
* Rate limiter.
|
||||
* Better logging configuration.
|
||||
* ~~Better logging configuration.~~
|
||||
|
||||
## Immediate Cleanups Required
|
||||
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ type AmCLI struct {
|
||||
ConfigFile string `arg:"-C,--config,env:AMSTERDAM_CONFIG" help:"Location of the configuration file."`
|
||||
Debug bool `arg:"-D,--debug,env:AMSTERDAM_DEBUG" help:"Force Amsterdam to run in debug mode."`
|
||||
LogLevel string `arg:"-L,--level,--loglevel,env:AMSTERDAM_LOG_LEVEL" help:"Set the log level for the server."`
|
||||
Production bool `arg:"-P,--prod,--production,env:AMSTERDAM_PROD" help:"Force Amsterdam to run in production mode."`
|
||||
Production bool `arg:"-P,--production,env:AMSTERDAM_PROD" help:"Force Amsterdam to run in production mode."`
|
||||
DatabaseURL string `arg:"-d,--database,env:AMSTERDAM_DATABASE_URL" help:"Database URL for Amsterdam to connect to."`
|
||||
Listen string `arg:"-l,--listen,env:AMSTERDAM_LISTEN" help:"Specifies the local address and port for Amsterdam to listen on."`
|
||||
DebugPanic bool `arg:"--debug-panic" help:"Development Only - disable Echo panic recovery"`
|
||||
|
||||
+1
-1
@@ -286,7 +286,7 @@ func (lf *amLogFile) tryRotate() {
|
||||
if lf.curSize >= lf.maxSize {
|
||||
err := lf.rotate()
|
||||
if err != nil {
|
||||
log.Error("log rotation failed")
|
||||
//log.Error("log rotation failed")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user