Pass blob to instrumentation

This commit is contained in:
Brandon Keepers
2015-03-05 10:03:01 -08:00
parent 2d5476f6c8
commit e8326529b5

View File

@@ -105,7 +105,7 @@ module Linguist
# Bail early if the blob is binary or empty.
return nil if blob.likely_binary? || blob.binary? || blob.empty?
Linguist.instrument("linguist.detection") do
Linguist.instrument("linguist.detection", :blob => blob) do
# Call each strategy until one candidate is returned.
languages = []
strategy = nil