mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 07:19:07 +00:00
fix error log due to slog update
This commit is contained in:
parent
dd23131976
commit
3fefb7ca7c
7 changed files with 17 additions and 17 deletions
|
@ -15,10 +15,10 @@ func (m *ConfigManager) ApplyPendingChanges() error {
|
|||
for _, fn := range m.applyFunctions {
|
||||
err := fn(*m.currentConfig, *m.pendingConfig)
|
||||
if err != nil {
|
||||
slog.Error("Applying Pending Changes", err)
|
||||
slog.Error("Applying Pending Changes", "err", err)
|
||||
err2 := revertToCurrent(m)
|
||||
if err2 != nil {
|
||||
slog.Error("Reverting Error", err2)
|
||||
slog.Error("Reverting Error", "err", err2)
|
||||
return fmt.Errorf("Apply Error %w; Reverting Error %w", err, err2)
|
||||
}
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue