mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Merge pull request #530 from oxisto/slog
Added support for structured logging in `csaf_aggregator`
This commit is contained in:
commit
617deb4c17
23 changed files with 135 additions and 91 deletions
|
|
@ -9,7 +9,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"log/slog"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
|
|
@ -85,7 +85,8 @@ func (lt *lazyTransaction) commit() error {
|
|||
os.RemoveAll(lt.dst)
|
||||
return err
|
||||
}
|
||||
log.Printf("Move %q -> %q\n", symlink, lt.src)
|
||||
|
||||
slog.Debug("Moving directory", "from", symlink, "to", lt.src)
|
||||
if err := os.Rename(symlink, lt.src); err != nil {
|
||||
os.RemoveAll(lt.dst)
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue