From bcd87a01b0bd8661a405b905f351174d834771ca Mon Sep 17 00:00:00 2001 From: hylom Date: Sat, 22 Oct 2016 03:06:05 +0900 Subject: [PATCH] Model::Base: add 'warn' method --- src/newslash_web/lib/Newslash/Model/Base.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/newslash_web/lib/Newslash/Model/Base.pm b/src/newslash_web/lib/Newslash/Model/Base.pm index 92ab222d..845b10cd 100644 --- a/src/newslash_web/lib/Newslash/Model/Base.pm +++ b/src/newslash_web/lib/Newslash/Model/Base.pm @@ -102,4 +102,10 @@ sub logger { }; } +sub warn { + my $self = shift; + my $val = shift; + $self->logger->warn($val); +} + 1; -- 2.11.0