Permalink
Browse files

remove hard code for log 2012

  • Loading branch information...
1 parent 1c4918d commit f3a6bbde9c644ee9806dcd166ef0ad9cd294f8d1 @biro biro committed with bobtfish Jan 2, 2013
Showing with 0 additions and 4 deletions.
  1. +0 −4 lib/Message/Passing/Output/ElasticSearch.pm
@@ -80,10 +80,6 @@ sub consume {
$date ||= DT->from_epoch(epoch => time());
my $type = $data->{__CLASS__} || 'unknown';
my $index_name = 'logstash-' . $date->year . '.' . sprintf("%02d", $date->month) . '.' . sprintf("%02d", $date->day);
- if ($index_name !~ /logstash-2012/) {
- use Data::Dumper;
- die "BUG - We generated a message from before 2012 - Payload " . Dumper($data);
- }
$self->_indexes->{$index_name} = 1;
my $to_queue = {
type => $type,

0 comments on commit f3a6bbd

Please sign in to comment.