]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/ctx.go
recfile log format
[nncp.git] / src / ctx.go
index 645483d6805d132040b272a3db44632c41d7bec6..ebd31024db7765b0c248300d317dd8afd2ad6a4e 100644 (file)
@@ -65,12 +65,12 @@ func (ctx *Ctx) FindNode(id string) (*Node, error) {
 func (ctx *Ctx) ensureRxDir(nodeId *NodeId) error {
        dirPath := filepath.Join(ctx.Spool, nodeId.String(), string(TRx))
        if err := os.MkdirAll(dirPath, os.FileMode(0777)); err != nil {
-               ctx.LogE("dir-ensure", SDS{"dir": dirPath}, err, "")
+               ctx.LogE("dir-ensure", LEs{{"Dir", dirPath}}, err, "")
                return err
        }
        fd, err := os.Open(dirPath)
        if err != nil {
-               ctx.LogE("dir-ensure", SDS{"dir": dirPath}, err, "")
+               ctx.LogE("dir-ensure", LEs{{"Dir", dirPath}}, err, "")
                return err
        }
        return fd.Close()