Commit 2623995
committed
conf: Return an error if zlog_init is called with a non-regular file
Currently, calling zlog_init with a non-regular file (e.g., a directory)
didn’t return an error. The logger would have been configured the same
as with an empty file.
The file is now checked to ensure it is regular, and an error is returned
if it is not.
Fixes #278.1 parent ee835a1 commit 2623995
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
| |||
471 | 465 | | |
472 | 466 | | |
473 | 467 | | |
474 | | - | |
| 468 | + | |
475 | 469 | | |
476 | 470 | | |
477 | 471 | | |
478 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| |||
0 commit comments