Skip to content

conf: zlog_init doesn't return an error when given a non-regular file path for initialization #278

Description

@iancuivasciuc

When zlog_init is given a path to a non-regular file, it doesn't return an error. Instead, the logger is configured as if it was given an empty file.

For example, consider the following:

zlog_init("/etc/zlog.conf")  // no error, works fine
zlog_init("/etc/zlog.con")   // error, works fine
zlog_init("/etc")            // no error ???

Shouldn't an error be returned in the last case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions