lib/spaceship/client.rb in spaceship-0.19.4 vs lib/spaceship/client.rb in spaceship-0.20.0

- old
+ new

@@ -23,11 +23,11 @@ # The user that is currently logged in attr_accessor :user # The logger in which all requests are logged - # /tmp/spaceship[time].log by default + # /tmp/spaceship[time]_[pid].log by default attr_accessor :logger # Invalid user credentials were provided class InvalidUserCredentialsError < StandardError; end @@ -82,17 +82,17 @@ end end end # The logger in which all requests are logged - # /tmp/spaceship[time].log by default + # /tmp/spaceship[time]_[pid].log by default def logger unless @logger if ENV["VERBOSE"] @logger = Logger.new(STDOUT) else # Log to file by default - path = "/tmp/spaceship#{Time.now.to_i}.log" + path = "/tmp/spaceship#{Time.now.to_i}_#{Process.pid}.log" @logger = Logger.new(path) end @logger.formatter = proc do |severity, datetime, progname, msg| "[#{datetime.strftime('%H:%M:%S')}]: #{msg}\n"