use err facility when logging errors to syslog
parent
ff3e4a51e2
commit
98994a4719
|
@ -152,7 +152,7 @@ sub error ($;$) { #{{{
|
||||||
print misctemplate(gettext("Error"),
|
print misctemplate(gettext("Error"),
|
||||||
"<p>".gettext("Error").": $message</p>");
|
"<p>".gettext("Error").": $message</p>");
|
||||||
}
|
}
|
||||||
log_message(debug => $message) if $config{syslog};
|
log_message('err' => $message) if $config{syslog};
|
||||||
if (defined $cleaner) {
|
if (defined $cleaner) {
|
||||||
$cleaner->();
|
$cleaner->();
|
||||||
}
|
}
|
||||||
|
@ -177,7 +177,7 @@ sub log_message ($$) { #{{{
|
||||||
}
|
}
|
||||||
eval {
|
eval {
|
||||||
Sys::Syslog::syslog($type, "%s", join(" ", @_));
|
Sys::Syslog::syslog($type, "%s", join(" ", @_));
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
elsif (! $config{cgi}) {
|
elsif (! $config{cgi}) {
|
||||||
print "@_\n";
|
print "@_\n";
|
||||||
|
|
|
@ -6,7 +6,7 @@ ikiwiki (1.50) UNRELEASED; urgency=low
|
||||||
* Enhance helponformatting and related documentation to supply more
|
* Enhance helponformatting and related documentation to supply more
|
||||||
information about available preprocessor directives.
|
information about available preprocessor directives.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Mon, 9 Apr 2007 14:46:37 -0700
|
-- Joey Hess <joeyh@debian.org> Mon, 09 Apr 2007 19:01:56 -0400
|
||||||
|
|
||||||
ikiwiki (1.49) unstable; urgency=low
|
ikiwiki (1.49) unstable; urgency=low
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ ikiwiki (1.49) unstable; urgency=low
|
||||||
* Hide excess backlinks and expand using CSS trick; control quantiy via
|
* Hide excess backlinks and expand using CSS trick; control quantiy via
|
||||||
the numbacklinks setting.
|
the numbacklinks setting.
|
||||||
* Finally apply the index.html patch, with thanks to everyone who worked
|
* Finally apply the index.html patch, with thanks to everyone who worked
|
||||||
on and supported creating it (especially Tumov). This adds a "usedirs"
|
on and supported creating it (especially Tuomov). This adds a "usedirs"
|
||||||
option that makes ikiwiki use foo/index.html instead of foo.html as
|
option that makes ikiwiki use foo/index.html instead of foo.html as
|
||||||
output page names. It is not yet enabled by default.
|
output page names. It is not yet enabled by default.
|
||||||
* Fix a bug in the img plugin that caused thumbnailed files to not be
|
* Fix a bug in the img plugin that caused thumbnailed files to not be
|
||||||
|
|
Loading…
Reference in New Issue