Skip to content

Commit

Permalink
FIX try to fix phan error
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Mar 26, 2024
1 parent 08aed33 commit 0da7288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/modules/syslog/mod_syslog_file.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function export($content, $suffixinfilename = '')
$message = dol_print_date(dol_now('gmt'), 'standard', 'gmt').$delay." ".sprintf("%-7s", $logLevels[$content['level']])." ".sprintf("%-15s", $content['ip']);
$message .= " ".sprintf("%7s", dol_trunc($content['ospid'], 7, 'right', 'UTF-8', 1));
$message .= " ".sprintf("%6s", dol_trunc($content['osuser'], 6, 'right', 'UTF-8', 1));
$message .= " ".($this->ident > 0 ? str_pad('', $this->ident, ' ') : '').$content['message'];
$message .= " ".($this->ident > 0 ? str_pad(((string) ''), ((int) $this->ident), ((string) ' ')) : '').$content['message'];
fwrite($filefd, $message."\n");
fclose($filefd);
dolChmod($logfile);
Expand Down

0 comments on commit 0da7288

Please sign in to comment.