Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove env from crash.log #800

Merged
merged 1 commit into from Jan 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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