errdo 0.11.5 → 0.11.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05c377f7907bbe6741be87055dff59e3b1f0fc75
4
- data.tar.gz: 486caa7896814d89b8a81d816f48ba5102299f27
3
+ metadata.gz: 1ad577c40b152ed04f66c8754561ee289996448f
4
+ data.tar.gz: c8d7ef2a6ebbd091caeb8906e6f445131a52d139
5
5
  SHA512:
6
- metadata.gz: 8b31dd43cbbfbe2ec4ae63d5458def2911eeaa08a4ebba99597728231f13fa726ae2255f6ae0497fa46fbd4636b720cec296ba394993fdd33a2c31dc0fbdc131
7
- data.tar.gz: 4437b224d6a007bd125c3d9a7bb9054d107b31fddedfcda817a1831e831eb39e9765c3cf8f7668c64291f403e7de041051dcf0fed65169c70e89e7b30931a019
6
+ metadata.gz: c53103b6019c69f643e30b78e144d048583f82aa65ff8cb2a8c8b8393ae418897359c255631b00738c3f20da83f56fa881557126e7bee4e10d20797d509cf4d1
7
+ data.tar.gz: f701bc90c15d87628baa6492330d2061d4e71dff66341105697952d49394222711ea19290617cafa89f6da2ec99dda84aae9274fe37803045dd5db9e9c3c0e73
@@ -14,7 +14,7 @@ module Errdo
14
14
  body = { status: status,
15
15
  error: Rack::Utils::HTTP_STATUS_CODES.fetch(status.to_i, Rack::Utils::HTTP_STATUS_CODES[500]) }
16
16
 
17
- Errdo::Exception.new(env)
17
+ Errdo::Exception.new(env) if Errdo.log404 || status.to_i != 404
18
18
  render(status, content_type, body)
19
19
  end
20
20
 
@@ -46,7 +46,7 @@ module Errdo
46
46
  title: @exception_message,
47
47
  title_link: error_url,
48
48
  fields: additional_fields,
49
- color: "#36a64f"
49
+ color: "#FF0E00"
50
50
  ]]
51
51
  end
52
52
 
data/lib/errdo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Errdo
2
- VERSION = '0.11.5'.freeze
2
+ VERSION = '0.11.6'.freeze
3
3
  end
data/lib/errdo.rb CHANGED
@@ -41,6 +41,9 @@ module Errdo
41
41
  # This determines whether a task that fails will log an exception
42
42
  mattr_accessor :log_task_exceptions
43
43
  @@log_task_exceptions = true
44
+
45
+ mattr_accessor :log404
46
+ @@log404 = false
44
47
  # rubocop:enable Style/ClassVars
45
48
 
46
49
  # == Authentication ==
@@ -2,7 +2,10 @@ Errdo.setup do |config|
2
2
  # Add words to be scrubbed from the params here. By default, this is
3
3
  # %w(password passwd password_confirmation secret confirm_password secret_token)
4
4
  # So make sure you add on, not replace!
5
- # Errdo.dirty_words += ["custom_param"]
5
+ # config.dirty_words += ["custom_param"]
6
+
7
+ # By default, 404 errors are ignored. To un-ignore them, set this to true
8
+ # config.log404 = true
6
9
 
7
10
  ## == Authorization and Devise integration =========
8
11
  # If you have the ability to track who's logged in, setting the current_user_method
@@ -50,5 +53,4 @@ Errdo.setup do |config|
50
53
  ## == Non Web Requests ============================
51
54
  # Error logging for rake tasks is on by default. To turn it off, set
52
55
  # Errdo.log_task_exceptions = false
53
-
54
56
  end
Binary file
Binary file
@@ -30908,3 +30908,84 @@ Processing by Errdo::ErrorsController#show as HTML
30908
30908
  Rendered /home/eric/Projects/errdo/app/views/errdo/errors/show.html.slim within layouts/errdo/application (18.3ms)
30909
30909
  Rendered /home/eric/Projects/errdo/app/views/layouts/errdo/_navbar.html.slim (0.4ms)
30910
30910
  Completed 200 OK in 40ms (Views: 34.3ms | ActiveRecord: 1.4ms)
30911
+
30912
+
30913
+ Started GET "/static/generic_error" for 127.0.0.1 at 2016-11-14 20:27:38 -0500
30914
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
30915
+ Processing by StaticController#generic_error as HTML
30916
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
30917
+
30918
+ RuntimeError (standard-error):
30919
+ app/controllers/static_controller.rb:7:in `generic_error'
30920
+
30921
+
30922
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
30923
+ Errdo::Error Load (0.3ms) SELECT "errors".* FROM "errors" WHERE "errors"."backtrace_hash" = ? LIMIT 1 [["backtrace_hash", "trollers/static_controller.rb:7:in `generic_error'standard-errorRuntimeError"]]
30924
+  (0.1ms) begin transaction
30925
+ SQL (0.4ms) INSERT INTO "error_occurrences" ("ip", "user_agent", "query_string", "experiencer_id", "experiencer_type", "param_values", "cookie_values", "header_values", "error_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["ip", "127.0.0.1"], ["user_agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36"], ["query_string", ""], ["experiencer_id", 1], ["experiencer_type", "User"], ["param_values", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\ncontroller: static\naction: generic_error\n"], ["cookie_values", "---\n_ga: GA1.1.2096945490.1464561447\n_dummy_session: YUhZT0k5RkZwcHVWSnFjRUxUcFZhM2QvZ0thbzJiUmQwRUl1c2ljUVR4YU1KQlJzZU96MWVlcW5YcTRZR0hEQ3V2WFN3N1gwdjd0UmZrY1pqUW04VG9rTGpSbm9rb1JMMFpQM0lkTHVDYUovTlFPZDNMcmNtODVYSmN5RmFlNTluS3F5MTdSdTROSTk4aHRSS1Q0RnA0S0g4c0xVaHp0UDlOcXNKOHZEQVI3bEdweEl3NkM2OXFSdTR6YzFYT1RmbUxvWTUzWUhINmdqNVFjWGlCRGpjMVBKbEtwbmk5MHZNcks3Y2NyYmwxazIybS9mYmRuaDdaenlxTDlScGxCeEFhZis5SWdaaUxNV1d5NjVVUzBpNlhqcThiMXJTakRXWm9XZ1pBWjhwRmNaSi9DTy9EYlB3eWx4WDRhTkJ6b21sLytTSGRTK1ZkY3FlRVQ1UzMxVlJ3PT0tLUE1ckIvak5TcmNtaEZGd3lHNHlxb1E9PQ==--3f2090014ec6993bdc565351992c7a1ccf490664\n"], ["header_values", "---\nX-Frame-Options: SAMEORIGIN\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\n"], ["error_id", 5], ["created_at", "2016-11-15 01:28:31.144885"], ["updated_at", "2016-11-15 01:28:31.144885"]]
30926
+ SQL (0.2ms) UPDATE "errors" SET "occurrence_count" = COALESCE("occurrence_count", 0) + 1 WHERE "errors"."id" = ? [["id", 5]]
30927
+ Errdo::Error Exists (0.2ms) SELECT 1 AS one FROM "errors" WHERE ("errors"."backtrace_hash" = 'trollers/static_controller.rb:7:in `generic_error''standard-errorRuntimeError' AND "errors"."id" != 5) LIMIT 1
30928
+ SQL (0.3ms) UPDATE "errors" SET "occurrence_count" = ?, "last_occurred_at" = ?, "updated_at" = ? WHERE "errors"."id" = ? [["occurrence_count", 67], ["last_occurred_at", "2016-11-15 01:28:31.144885"], ["updated_at", "2016-11-15 01:28:31.156859"], ["id", 5]]
30929
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
30930
+ Errdo::Error Exists (0.1ms) SELECT 1 AS one FROM "errors" WHERE ("errors"."backtrace_hash" = 'trollers/static_controller.rb:7:in `generic_error''standard-errorRuntimeError' AND "errors"."id" != 5) LIMIT 1
30931
+  (9.1ms) commit transaction
30932
+
30933
+
30934
+ Started GET "/static/generic_error" for 127.0.0.1 at 2016-11-14 20:28:31 -0500
30935
+ Processing by StaticController#generic_error as HTML
30936
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
30937
+
30938
+ RuntimeError (standard-error):
30939
+ app/controllers/static_controller.rb:7:in `generic_error'
30940
+
30941
+
30942
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
30943
+ Errdo::Error Load (0.2ms) SELECT "errors".* FROM "errors" WHERE "errors"."backtrace_hash" = ? LIMIT 1 [["backtrace_hash", "trollers/static_controller.rb:7:in `generic_error'standard-errorRuntimeError"]]
30944
+  (0.0ms) begin transaction
30945
+ SQL (0.3ms) INSERT INTO "error_occurrences" ("ip", "user_agent", "query_string", "experiencer_id", "experiencer_type", "param_values", "cookie_values", "header_values", "error_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["ip", "127.0.0.1"], ["user_agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36"], ["query_string", ""], ["experiencer_id", 1], ["experiencer_type", "User"], ["param_values", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\ncontroller: static\naction: generic_error\n"], ["cookie_values", "---\n_ga: GA1.1.2096945490.1464561447\n_dummy_session: YUhZT0k5RkZwcHVWSnFjRUxUcFZhM2QvZ0thbzJiUmQwRUl1c2ljUVR4YU1KQlJzZU96MWVlcW5YcTRZR0hEQ3V2WFN3N1gwdjd0UmZrY1pqUW04VG9rTGpSbm9rb1JMMFpQM0lkTHVDYUovTlFPZDNMcmNtODVYSmN5RmFlNTluS3F5MTdSdTROSTk4aHRSS1Q0RnA0S0g4c0xVaHp0UDlOcXNKOHZEQVI3bEdweEl3NkM2OXFSdTR6YzFYT1RmbUxvWTUzWUhINmdqNVFjWGlCRGpjMVBKbEtwbmk5MHZNcks3Y2NyYmwxazIybS9mYmRuaDdaenlxTDlScGxCeEFhZis5SWdaaUxNV1d5NjVVUzBpNlhqcThiMXJTakRXWm9XZ1pBWjhwRmNaSi9DTy9EYlB3eWx4WDRhTkJ6b21sLytTSGRTK1ZkY3FlRVQ1UzMxVlJ3PT0tLUE1ckIvak5TcmNtaEZGd3lHNHlxb1E9PQ==--3f2090014ec6993bdc565351992c7a1ccf490664\n"], ["header_values", "---\nX-Frame-Options: SAMEORIGIN\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\n"], ["error_id", 5], ["created_at", "2016-11-15 01:28:32.501556"], ["updated_at", "2016-11-15 01:28:32.501556"]]
30946
+ SQL (0.2ms) UPDATE "errors" SET "occurrence_count" = COALESCE("occurrence_count", 0) + 1 WHERE "errors"."id" = ? [["id", 5]]
30947
+ Errdo::Error Exists (0.1ms) SELECT 1 AS one FROM "errors" WHERE ("errors"."backtrace_hash" = 'trollers/static_controller.rb:7:in `generic_error''standard-errorRuntimeError' AND "errors"."id" != 5) LIMIT 1
30948
+ SQL (0.3ms) UPDATE "errors" SET "occurrence_count" = ?, "last_occurred_at" = ?, "updated_at" = ? WHERE "errors"."id" = ? [["occurrence_count", 68], ["last_occurred_at", "2016-11-15 01:28:32.501556"], ["updated_at", "2016-11-15 01:28:32.508508"], ["id", 5]]
30949
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
30950
+ Errdo::Error Exists (0.1ms) SELECT 1 AS one FROM "errors" WHERE ("errors"."backtrace_hash" = 'trollers/static_controller.rb:7:in `generic_error''standard-errorRuntimeError' AND "errors"."id" != 5) LIMIT 1
30951
+  (9.4ms) commit transaction
30952
+
30953
+
30954
+ Started GET "/static/generic_error" for 127.0.0.1 at 2016-11-14 21:18:07 -0500
30955
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
30956
+ Processing by StaticController#generic_error as HTML
30957
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
30958
+
30959
+ RuntimeError (standard-error):
30960
+ app/controllers/static_controller.rb:7:in `generic_error'
30961
+
30962
+
30963
+
30964
+
30965
+ Started GET "/static/generic_error" for 127.0.0.1 at 2016-11-14 21:22:31 -0500
30966
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
30967
+ Processing by StaticController#generic_error as HTML
30968
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
30969
+
30970
+ RuntimeError (standard-error):
30971
+ app/controllers/static_controller.rb:7:in `generic_error'
30972
+
30973
+
30974
+ Rendered /home/eric/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.2ms)
30975
+ Rendered /home/eric/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms)
30976
+ Rendered /home/eric/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (9.0ms)
30977
+ Rendered /home/eric/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (25.5ms)
30978
+
30979
+
30980
+ Started GET "/static/generic_error" for 127.0.0.1 at 2016-11-14 21:22:53 -0500
30981
+ Processing by StaticController#generic_error as HTML
30982
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
30983
+
30984
+ RuntimeError (standard-error):
30985
+ app/controllers/static_controller.rb:7:in `generic_error'
30986
+
30987
+
30988
+ Rendered /home/eric/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.4ms)
30989
+ Rendered /home/eric/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms)
30990
+ Rendered /home/eric/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
30991
+ Rendered /home/eric/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.6ms)