mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Shorten the event name if it's too long
This commit is contained in:
parent
b273699f14
commit
15d28687d0
1 changed files with 3 additions and 1 deletions
|
@ -30,7 +30,9 @@ module LogStash
|
|||
multiple_events = event.is_a?(Array)
|
||||
|
||||
filters = @filters
|
||||
describe event do
|
||||
name = event.to_s
|
||||
name = name[0..50] + "..." if name.length > 50
|
||||
describe "\"#{name}\"" do
|
||||
before :all do
|
||||
# Coerce to an array of LogStash::Event
|
||||
event = [event] unless event.is_a?(Array)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue