line |
true |
false |
branch |
28
|
0 |
1 |
unless $logdir |
29
|
0 |
1 |
unless -d $logdir |
35
|
0 |
0 |
'Dancer::SharedData'->request ? : |
43
|
1 |
0 |
unless $$self{'fh'} |
57
|
0 |
0 |
unless ($fh) |
59
|
0 |
0 |
unless my $logdir = logdir() |
62
|
0 |
0 |
unless ($fh = open_file('>>', $logfile)) |
76
|
0 |
0 |
unless ref $fh and $fh->opened |
78
|
0 |
0 |
unless flock $fh, 2 |
80
|
0 |
0 |
unless seek $fh, 0, 2 |
82
|
0 |
0 |
unless $fh->print($self->format_message($level, $message)) |
84
|
0 |
0 |
unless flock $fh, 8 |
90
|
1 |
0 |
if (my $altpath = setting('log_path')) |
96
|
0 |
0 |
if ($logroot and not -d $logroot and not mkdir($logroot)) |
101
|
0 |
0 |
$logroot ? : |
105
|
0 |
0 |
if -d $expected_path and -x _ and -w _ |
107
|
0 |
0 |
unless (-w $logroot and -x _) |
110
|
0 |
0 |
unless (-w $logroot and -x _) |