diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2010-02-17 10:03:02 +0100 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2010-02-17 10:03:02 +0100 |
commit | a90f1ea5513997c96492bdf8e92bab39c3fea406 (patch) | |
tree | 52fbe1b1c6f5728ed56b47ecaf86bc038a18906e /lib/dataset.rb | |
parent | 4700e63c77377f5731d47e3b523bdc3df60af149 (diff) |
print annoying curl messages (error stream) to dev/null
Diffstat (limited to 'lib/dataset.rb')
-rw-r--r-- | lib/dataset.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb index 0ffefdc..962a576 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -86,8 +86,8 @@ module OpenTox def self.find(uri) dataset = Dataset.new - LOGGER.debug "Getting data from #{uri}" - data = `curl "#{uri}"` + LOGGER.debug "Getting data from #{uri}" + data = `curl "#{uri}" 2> /dev/null` #LOGGER.debug data #data = RestClient.get(uri, :accept => 'application/rdf+xml') # unclear why this does not work for complex uris, Dataset.find works from irb dataset.rdf = data |