store/json: log on dropping composes on unmarshal
If an invalid compose is encountered, then we drop it. Make sure to log if a logger object is provided. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
f8db2e28e1
commit
a22cd78eb3
6 changed files with 15 additions and 12 deletions
|
|
@ -117,7 +117,7 @@ func main() {
|
|||
logger = log.New(os.Stdout, "", 0)
|
||||
}
|
||||
|
||||
store := store.New(&stateDir, arch)
|
||||
store := store.New(&stateDir, arch, logger)
|
||||
|
||||
queueDir := path.Join(stateDir, "jobs")
|
||||
err = os.Mkdir(queueDir, 0700)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue