Skip to content

daemon --logfile fails if file DNE #32

@usernamenumber

Description

@usernamenumber
$ unik daemon —debug=true --logfile=ukd.log
ERRO[0000] running daemon failed: [cmd/daemon.go:57] failed to open log file ukd.log for writing: {open ukd.log: no such file or directory}

Running touch ukd.log and re-running the above works. Seems like it would be more friendly if unik simply created the file if needed.

If this behavior is desired, fixing it might make a good entry-level project, so I can take a stab at it and submit a PR as time allows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions