Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi QuBiT,
I ran into a problem in the exception_logger where an Encoding::CompatibilityError in LoggedExceptions/show would be raised when I tried to view the stack trace web page for a logged exception. The exception complains about Incompatible character encodings: ASCII-8BIT and UTF-8 and seems to be a 1.9.x issue. I pasted the exception below. Feel free to take this patch, or modify it to something more appropriate.
The exception:
Request
Backtrace
"incompatible character encodings: ASCII-8BIT and UTF-8"
/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/core_ext/string/output_safety.rb:80:in
concat' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/core_ext/string/output_safety.rb:80:in
concat'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/template/handlers/erb.rb:14:in
<<' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/exception_logger-0.1.10/app/views/logged_exceptions/_show.html.erb:23:in
__home_ebeland__rvm_gems_ruby_______p____rails__gems_exception_logger________app_views_logged_exceptions__show_html_erb__1048433563257994963_69256160_346504932021220071'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/template.rb:135:in
block in render' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/notifications.rb:54:in
instrument'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/template.rb:127:in
render' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/render/partials.rb:333:in
render_partial'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/render/partials.rb:262:in
block in render' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
block in instrument'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/notifications/instrumenter.rb:21:in
instrument' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
instrument'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/render/partials.rb:260:in
render' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/render/partials.rb:378:in
_render_partial'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:22:in
render' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/exception_logger-0.1.10/app/views/logged_exceptions/show.js.erb:1:in
__home_ebeland__rvm_gems_ruby_______p____rails__gems_exception_logger________app_views_logged_exceptions_show_js_erb__912490557471836570_69408440_250743224321483200'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/template.rb:135:in
block in render' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/notifications.rb:54:in
instrument'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/template.rb:127:in
render' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:59:in
block in _render_template'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
block in instrument' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/notifications/instrumenter.rb:21:in
instrument'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
instrument' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:56:in
_render_template'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:26:in
render' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:115:in
_render_template'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:109:in
render_to_body' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/renderers.rb:47:in
render_to_body'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/compatibility.rb:55:in
render_to_body' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:102:in
render_to_string'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:93:in
render' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/rendering.rb:17:in
render'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/instrumentation.rb:40:in
block (2 levels) in render' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/core_ext/benchmark.rb:5:in
block in ms'/home/ebeland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/benchmark.rb:309:in
realtime' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/core_ext/benchmark.rb:5:in
ms'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/instrumentation.rb:40:in
block in render' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/instrumentation.rb:78:in
cleanup_view_runtime'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activerecord-3.0.7/lib/active_record/railties/controller_runtime.rb:15:in
cleanup_view_runtime' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/instrumentation.rb:39:in
render'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/implicit_render.rb:14:in
default_render' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/mime_responds.rb:261:in
block in retrieve_response_from_mimes'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/mime_responds.rb:192:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/mime_responds.rb:192:in
respond_to'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/exception_logger-0.1.10/app/controllers/logged_exceptions_controller.rb:55:in
show' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/implicit_render.rb:5:in
send_action'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/abstract_controller/base.rb:150:in
process_action' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/rendering.rb:11:in
process_action'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/abstract_controller/callbacks.rb:18:in
block in process_action' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/callbacks.rb:471:in
_run__3879638759732891400__process_action__2025434870542418597__callbacks'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/callbacks.rb:410:in
_run_process_action_callbacks' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/callbacks.rb:94:in
run_callbacks'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/abstract_controller/callbacks.rb:17:in
process_action' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/instrumentation.rb:30:in
block in process_action'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
block in instrument' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/notifications/instrumenter.rb:21:in
instrument'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
instrument' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/instrumentation.rb:29:in
process_action'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/rescue.rb:17:in
process_action' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/abstract_controller/base.rb:119:in
process'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:41:in
process' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal.rb:138:in
dispatch'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal/rack_delegation.rb:14:in
dispatch' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_controller/metal.rb:178:in
block in action'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:62:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:62:in
dispatch'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:27:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:148:in
block in call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:93:in
block in recognize' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:103:in
optimized_each'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:92:in
recognize' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:139:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:493:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/static.rb:30:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/static.rb:30:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/head.rb:14:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/rack-1.2.2/lib/rack/methodoverride.rb:24:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/params_parser.rb:21:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/flash.rb:182:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/session/abstract_store.rb:149:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/cookies.rb:302:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activerecord-3.0.7/lib/active_record/query_cache.rb:32:in
block in call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in
cache'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activerecord-3.0.7/lib/active_record/query_cache.rb:12:in
cache' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activerecord-3.0.7/lib/active_record/query_cache.rb:31:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/callbacks.rb:46:in
block in call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/callbacks.rb:416:in
_run_call_callbacks' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/callbacks.rb:44:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/rack-1.2.2/lib/rack/sendfile.rb:107:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/remote_ip.rb:48:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/show_exceptions.rb:47:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/railties-3.0.7/lib/rails/rack/logger.rb:13:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/rack-1.2.2/lib/rack/runtime.rb:17:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activesupport-3.0.7/lib/active_support/cache/strategy/local_cache.rb:72:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/rack-1.2.2/lib/rack/lock.rb:11:in
block in call' :10:in
synchronize'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/rack-1.2.2/lib/rack/lock.rb:11:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/actionpack-3.0.7/lib/action_dispatch/middleware/static.rb:30:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/railties-3.0.7/lib/rails/application.rb:168:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/railties-3.0.7/lib/rails/application.rb:77:in
method_missing'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/railties-3.0.7/lib/rails/rack/log_tailer.rb:14:in
call' /home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/rack-1.2.2/lib/rack/content_length.rb:13:in
call'/home/ebeland/.rvm/gems/ruby-1.9.2-p180@rails3/gems/rack-1.2.2/lib/rack/handler/webrick.rb:52:in
service' /home/ebeland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
service'/home/ebeland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
run' /home/ebeland/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183:in
block in start_thread'