OSDN Git Service

add missing log_die method for Keitairc::Log
authorISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Mon, 13 Sep 2010 09:10:42 +0000 (18:10 +0900)
committerISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Mon, 13 Sep 2010 09:10:42 +0000 (18:10 +0900)
lib/Keitairc/Log.pm

index 7c10022..c82ae29 100644 (file)
@@ -99,4 +99,10 @@ sub log_debug {
        $me->{writer}->log_debug($me->_format($m));
 }
 
+sub log_die {
+       my ($me, $m) = @_;
+       $me->log_error($m);
+       die;
+}
+
 1;