File: jsonverbose.rb

package info (click to toggle)
whatweb 0.6.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 23,948 kB
  • sloc: ruby: 43,493; sh: 213; makefile: 41
file content (10 lines) | stat: -rw-r--r-- 242 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10

# This is not JSON compliant as a list
class LoggingJSONVerbose < Logging
  def out(target, status, results)
    # brutal and simple
    $semaphore.synchronize do
      @f.puts JSON.fast_generate([target, status, results])
    end
  end
end