Skip to content

Commit

Permalink
Workaround disabled openlog syslog
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed Jan 29, 2023
1 parent 4f316b2 commit be82170
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/lib_rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ function str_starts_with(string $haystack, string $needle): bool {
}
}

if (!function_exists('openlog')) {
function openlog(string $prefix, int $flags, int $facility): bool {
return false;
}
}
if (!function_exists('syslog')) {
function syslog(int $priority, string $message): bool {
return false;
}
}

// @phpstan-ignore-next-line
if (COPY_SYSLOG_TO_STDERR) {
openlog('FreshRSS', LOG_CONS | LOG_ODELAY | LOG_PID | LOG_PERROR, LOG_USER);
Expand Down

0 comments on commit be82170

Please sign in to comment.