summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2019-10-01 14:31:01 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2019-10-01 14:31:01 (GMT)
commit3ba18dcf5581f79974ee1aadfe7dca20e2ea6a16 (patch) (side-by-side diff)
tree87e5b6cf957347251922fed5562d7263a023db91
parent2ba856e58f64a70ff336dca733c210da06f9db37 (diff)
downloadmojosyslog-3ba18dcf5581f79974ee1aadfe7dca20e2ea6a16.tar.gz
mojosyslog-3ba18dcf5581f79974ee1aadfe7dca20e2ea6a16.tar.bz2
Fix typosv1.01
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Changes7
-rw-r--r--lib/Mojo/Log/Syslog.pm6
2 files changed, 9 insertions, 4 deletions
diff --git a/Changes b/Changes
index c893416..dba5b7c 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,8 @@
+1.01 2019-10-01
+
+ - Fix typos: use LOG_ERR instead of LOG_ERROR and LOG_WARNING
+ instead of LOG_WARN.
+
1.00 2017-11-12
-* Initial release
+ - Initial release
diff --git a/lib/Mojo/Log/Syslog.pm b/lib/Mojo/Log/Syslog.pm
index 4582037..3e5992c 100644
--- a/lib/Mojo/Log/Syslog.pm
+++ b/lib/Mojo/Log/Syslog.pm
@@ -6,7 +6,7 @@ use File::Basename 'basename';
use Sys::Syslog qw(:standard :macros);
use Carp;
-our $VERSION = '1.0';
+our $VERSION = '1.01';
sub new {
my $class = shift;
@@ -24,9 +24,9 @@ sub new {
}
sub debug { shift->_syslog(debug => LOG_DEBUG => @_) }
-sub warn { shift->_syslog(warn => LOG_WARN => @_) }
+sub warn { shift->_syslog(warn => LOG_WARNING => @_) }
sub info { shift->_syslog(info => LOG_INFO => @_) }
-sub error { shift->_syslog(error => LOG_ERROR => @_) }
+sub error { shift->_syslog(error => LOG_ERR => @_) }
sub fatal { shift->_syslog(fatal => LOG_CRIT => @_) }
sub _syslog {

Return to:

Send suggestions and report system problems to the System administrator.