I continually received the following error via email:
Modification of a read-only value attempted at
/usr/lib/perl5/5.8.5/i386-linux/Sys/Syslog.pm line 312

Managed to find a solve problem by correcting syntax in
System:Log:Syslog.pm for the call to syslog.

Man page states syntax as: syslog $priority, $format, @args

Diff or correction is:
65c65
<         syslog('debug',"%s", "[Debug][$Param{Module}][$Param{Line}]
$Param{Message}");
---
>         syslog('debug', "[Debug][$Param{Module}][$Param{Line}]
$Param{Message}");
68c68
<         syslog('info',"%s", "[Info][$Param{Module}] $Param{Message}");
---
>         syslog('info', "[Info][$Param{Module}] $Param{Message}");
71c71
<         syslog('notice',"%s", "[Notice][$Param{Module}]
$Param{Message}");
---
>         syslog('notice', "[Notice][$Param{Module}] $Param{Message}");
74c74
<         syslog('err',"%s",
"[Error][$Param{Module}][Line:$Param{Line}]: $Param{Message}");
---
>         syslog('err', "[Error][$Param{Module}][Line:$Param{Line}]:
$Param{Message}");
80c80
<         syslog('err',"%s", "[Error][$Param{Module}] Priority:
'$Param{Priority}' not defined! Message: $Param{Message}");
---
>         syslog('err', "[Error][$Param{Module}] Priority:
'$Param{Priority}' not defined! Message: $Param{Message}");


Please let me know if this is not correct. It seems to have stopped the
errors.

Regards,
Nigel Clarke
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to