Skip to content

Commit

Permalink
Merge pull request #800 from nanoc/remove-env-from-crash-log-2
Browse files Browse the repository at this point in the history
Remove env from crash.log
  • Loading branch information
denisdefreyne committed Jan 13, 2016
2 parents 21e912d + e879354 commit 9787070
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/nanoc/cli/error_handler.rb
Expand Up @@ -138,7 +138,6 @@ def write_verbose_error(error, stream)
write_version_information(stream, verbose: true)
write_system_information(stream, verbose: true)
write_installed_gems(stream, verbose: true)
write_environment(stream, verbose: true)
write_gemfile_lock(stream, verbose: true)
write_load_paths(stream, verbose: true)
end
Expand Down Expand Up @@ -320,13 +319,6 @@ def write_installed_gems(stream, verbose: false)
end
end

def write_environment(stream, verbose: false)
write_section_header(stream, 'Environment', verbose: verbose)
ENV.sort.each do |e|
stream.puts "#{e.first} => #{e.last.inspect}"
end
end

def write_gemfile_lock(stream, verbose: false)
if File.exist?('Gemfile.lock')
write_section_header(stream, 'Gemfile.lock', verbose: verbose)
Expand Down

0 comments on commit 9787070

Please sign in to comment.