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:
Tom Gundersen 2020-05-14 01:34:21 +02:00
parent f8db2e28e1
commit a22cd78eb3
6 changed files with 15 additions and 12 deletions

View file

@ -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)