Subject: | Bareword "Scribe::Thrift::ResultCode::TRY_LATER" not allowed while "strict subs" in ver 0.05 |
Hello,
While Scribe has installed as git version 6600084 and later,
it causes all the programs using Log::Dispatch::Scribe error as below:
Bareword "Scribe::Thrift::ResultCode::TRY_LATER" not allowed while
"strict subs" in Scribe.pm line 78
Temporary solution is to patch Scribe.pm as attachment.
Would you like to fix this problem?
Thanks a lot
--
Stephon
Subject: | Log-Dispatch-Scribe-0.05.patch.txt |
--- Scribe.pm.orig 2012-01-18 16:20:25.000000000 +0800
+++ Scribe.pm 2012-01-18 16:03:03.000000000 +0800
@@ -75,7 +75,7 @@
Scribe::Thrift::LogEntry->new({ category => $cat, message => $params{message} }))
if $append && @{$self->{_retry_buffer}} <= $self->{retry_buffer_size};
my $result = $self->{client}->Log($self->{_retry_buffer});
- die "TRY_LATER" if $result == Scribe::Thrift::ResultCode::TRY_LATER;
+ die "TRY_LATER" if $result == &Scribe::Thrift::ResultCode::TRY_LATER;
$self->{_retry_buffer} = [];
$looping = 0;