mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 09:18:31 +02:00
feat(config): add temporary logging for failed reloads
- Add tmpLogBuf and tmpLog fields to capture config loading logs - Flush temporary logs only when reload succeeds - Extract NewLogger function for creating custom loggers - Update State interface to include FlushTmpLog method
This commit is contained in:
@@ -30,6 +30,8 @@ type State interface {
|
||||
IterProviders() iter.Seq2[string, types.RouteProvider]
|
||||
NumProviders() int
|
||||
StartProviders() error
|
||||
|
||||
FlushTmpLog()
|
||||
}
|
||||
|
||||
// could be nil
|
||||
|
||||
Reference in New Issue
Block a user