diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 6636045..b7fa15a 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -84,10 +84,7 @@ class UsersController < ApplicationController verify_code = rand(999999).to_s result = UserMailer.send_verify_code(user.email, verify_code).deliver_now p result - User.transaction do - user.verify_code = verify_code - user.save - end + user.update_attribute(:verify_code,verify_code) end def check_change_params(email, verify_code, password, password_confirmation) diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index 29bebac..e884bad 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -1,6 +1,6 @@ module UsersHelper def get_user_name_from_id user_id - user = User.where(id: user_id) - return user.name if !user.empty? + user = User.find_by(id: user_id) + return user.name if !user.nil? end end diff --git a/app/models/user.rb b/app/models/user.rb index 91adcdc..65885c8 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,5 +1,6 @@ class User < ApplicationRecord before_save :default_values + before_save :default_values def default_values self.picurl = 'images/avatars/default/avatar.png' @@ -22,4 +23,6 @@ class User < ApplicationRecord has_secure_password validates :password, presence: true, length: {minimum: 6}, allow_nil: true + + end diff --git a/app/views/micro_posts/show.html.erb b/app/views/micro_posts/show.html.erb index 61b1965..f8b6fc1 100644 --- a/app/views/micro_posts/show.html.erb +++ b/app/views/micro_posts/show.html.erb @@ -105,10 +105,10 @@ diff --git a/logs.txt b/logs.txt new file mode 100644 index 0000000..314c692 --- /dev/null +++ b/logs.txt @@ -0,0 +1,101 @@ +2017-01-05T14:20:27.363943+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `block in tagged' +2017-01-05T14:20:27.363944+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `tagged' +2017-01-05T14:20:27.363946+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call' +2017-01-05T14:20:27.363945+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `call' +2017-01-05T14:20:27.363947+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call' +2017-01-05T14:20:27.363947+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call' +2017-01-05T14:20:27.363948+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +2017-01-05T14:20:27.363949+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' +2017-01-05T14:20:27.363949+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/static.rb:136:in `call' +2017-01-05T14:20:27.363950+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call' +2017-01-05T14:20:27.363953+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/server.rb:415:in `process_client' +2017-01-05T14:20:27.363951+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/railties-5.0.1/lib/rails/engine.rb:522:in `call' +2017-01-05T14:20:27.363951+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/configuration.rb:225:in `call' +2017-01-05T14:20:27.363952+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/server.rb:578:in `handle_request' +2017-01-05T14:20:27.363953+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/server.rb:275:in `block in run' +2017-01-05T14:20:27.363954+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/thread_pool.rb:116:in `call' +2017-01-05T14:20:27.363955+00:00 app[web.1]: [1eff8466-8d38-4f33-aaf7-352eea6d6f15] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/thread_pool.rb:116:in `block in spawn_thread' +2017-01-05T14:20:27.455546+00:00 app[web.1]: I, [2017-01-05T14:20:27.455377 #4] INFO -- : [df174755-766a-436e-bf48-24474877a32c] Started GET "/data/7642f338171e1cdc30500f57a3886cc0.jpg" for 121.195.114.162 at 2017-01-05 14:20:27 +0000 +2017-01-05T14:20:27.456620+00:00 app[web.1]: F, [2017-01-05T14:20:27.456574 #4] FATAL -- : [df174755-766a-436e-bf48-24474877a32c] +2017-01-05T14:20:27.456754+00:00 app[web.1]: F, [2017-01-05T14:20:27.456712 #4] FATAL -- : [df174755-766a-436e-bf48-24474877a32c] ActionController::RoutingError (No route matches [GET] "/data/7642f338171e1cdc30500f57a3886cc0.jpg"): +2017-01-05T14:20:27.456812+00:00 app[web.1]: F, [2017-01-05T14:20:27.456770 #4] FATAL -- : [df174755-766a-436e-bf48-24474877a32c] +2017-01-05T14:20:27.456932+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +2017-01-05T14:20:27.456933+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `block in call' +2017-01-05T14:20:27.456930+00:00 app[web.1]: F, [2017-01-05T14:20:27.456886 #4] FATAL -- : [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call' +2017-01-05T14:20:27.456933+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:36:in `call_app' +2017-01-05T14:20:27.456935+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:26:in `tagged' +2017-01-05T14:20:27.456934+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `block in tagged' +2017-01-05T14:20:27.456936+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `tagged' +2017-01-05T14:20:27.456936+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `call' +2017-01-05T14:20:27.456941+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/static.rb:136:in `call' +2017-01-05T14:20:27.456937+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call' +2017-01-05T14:20:27.456942+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/railties-5.0.1/lib/rails/engine.rb:522:in `call' +2017-01-05T14:20:27.456938+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call' +2017-01-05T14:20:27.456939+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call' +2017-01-05T14:20:27.456940+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +2017-01-05T14:20:27.456942+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call' +2017-01-05T14:20:27.456940+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' +2017-01-05T14:20:27.456943+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/configuration.rb:225:in `call' +2017-01-05T14:20:27.456944+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/server.rb:578:in `handle_request' +2017-01-05T14:20:27.456944+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/server.rb:415:in `process_client' +2017-01-05T14:20:27.456945+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/server.rb:275:in `block in run' +2017-01-05T14:20:27.456945+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/thread_pool.rb:116:in `call' +2017-01-05T14:20:27.456946+00:00 app[web.1]: [df174755-766a-436e-bf48-24474877a32c] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/thread_pool.rb:116:in `block in spawn_thread' +2017-01-05T14:20:27.457838+00:00 heroku[router]: at=info method=GET path="/data/7642f338171e1cdc30500f57a3886cc0.jpg" host=se-guoren-test.herokuapp.com request_id=df174755-766a-436e-bf48-24474877a32c fwd="121.195.114.162" dyno=web.1 connect=1ms service=4ms status=404 bytes=1744 +2017-01-05T14:20:27.786367+00:00 heroku[router]: at=info method=GET path="/notify" host=se-guoren-test.herokuapp.com request_id=dc229b77-4aee-412d-bff7-5f0f9716c584 fwd="121.195.114.162" dyno=web.1 connect=1ms service=18ms status=304 bytes=669 +2017-01-05T14:20:27.767325+00:00 app[web.1]: I, [2017-01-05T14:20:27.767254 #4] INFO -- : [dc229b77-4aee-412d-bff7-5f0f9716c584] Started GET "/notify" for 121.195.114.162 at 2017-01-05 14:20:27 +0000 +2017-01-05T14:20:27.769532+00:00 app[web.1]: I, [2017-01-05T14:20:27.769476 #4] INFO -- : [dc229b77-4aee-412d-bff7-5f0f9716c584] Processing by ChatController#notify as JSON +2017-01-05T14:20:27.773534+00:00 app[web.1]: D, [2017-01-05T14:20:27.773468 #4] DEBUG -- : [dc229b77-4aee-412d-bff7-5f0f9716c584] User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] +2017-01-05T14:20:27.781604+00:00 app[web.1]: D, [2017-01-05T14:20:27.781535 #4] DEBUG -- : [dc229b77-4aee-412d-bff7-5f0f9716c584]  (1.6ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = $1 AND "messages"."readed" = $2 [["recieve_user", 4], ["readed", false]] +2017-01-05T14:20:27.782458+00:00 app[web.1]: I, [2017-01-05T14:20:27.782394 #4] INFO -- : [dc229b77-4aee-412d-bff7-5f0f9716c584] Completed 200 OK in 13ms (Views: 0.4ms | ActiveRecord: 5.8ms) +2017-01-05T14:20:27.387061+00:00 heroku[router]: at=info method=GET path="/images/logo/guoren-small.png" host=se-guoren-test.herokuapp.com request_id=53d38b6b-303e-4c12-87bf-e77737ade6b5 fwd="121.195.114.162" dyno=web.1 connect=0ms service=2ms status=200 bytes=24466 +2017-01-05T14:20:32.870350+00:00 heroku[router]: at=info method=GET path="/profile" host=se-guoren-test.herokuapp.com request_id=b9b0de5d-aa1d-4f30-aa33-738a3e7bd447 fwd="121.195.114.162" dyno=web.1 connect=1ms service=20ms status=200 bytes=13401 +2017-01-05T14:20:32.846195+00:00 app[web.1]: I, [2017-01-05T14:20:32.846111 #4] INFO -- : [b9b0de5d-aa1d-4f30-aa33-738a3e7bd447] Started GET "/profile" for 121.195.114.162 at 2017-01-05 14:20:32 +0000 +2017-01-05T14:20:32.847006+00:00 app[web.1]: I, [2017-01-05T14:20:32.846940 #4] INFO -- : [b9b0de5d-aa1d-4f30-aa33-738a3e7bd447] Processing by UsersController#edit as HTML +2017-01-05T14:20:32.854986+00:00 app[web.1]: D, [2017-01-05T14:20:32.854893 #4] DEBUG -- : [b9b0de5d-aa1d-4f30-aa33-738a3e7bd447] User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] +2017-01-05T14:20:32.856537+00:00 app[web.1]: I, [2017-01-05T14:20:32.856484 #4] INFO -- : [b9b0de5d-aa1d-4f30-aa33-738a3e7bd447] Rendering users/edit.html.erb within layouts/application +2017-01-05T14:20:32.861381+00:00 app[web.1]: I, [2017-01-05T14:20:32.861287 #4] INFO -- : [b9b0de5d-aa1d-4f30-aa33-738a3e7bd447] Rendered users/edit.html.erb within layouts/application (4.6ms) +2017-01-05T14:20:32.861795+00:00 app[web.1]: I, [2017-01-05T14:20:32.861746 #4] INFO -- : [b9b0de5d-aa1d-4f30-aa33-738a3e7bd447] Rendered layouts/_title.html.erb (0.1ms) +2017-01-05T14:20:32.862240+00:00 app[web.1]: I, [2017-01-05T14:20:32.862177 #4] INFO -- : [b9b0de5d-aa1d-4f30-aa33-738a3e7bd447] Rendered layouts/_refer.html.erb (0.0ms) +2017-01-05T14:20:32.857582+00:00 app[web.1]: I, [2017-01-05T14:20:32.857532 #4] INFO -- : [b9b0de5d-aa1d-4f30-aa33-738a3e7bd447] Rendered layouts/_nav.html.erb (0.1ms) +2017-01-05T14:20:32.862738+00:00 app[web.1]: I, [2017-01-05T14:20:32.862692 #4] INFO -- : [b9b0de5d-aa1d-4f30-aa33-738a3e7bd447] Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 1.5ms) +2017-01-05T14:20:34.158404+00:00 heroku[router]: at=info method=GET path="/notify" host=se-guoren-test.herokuapp.com request_id=1c2dbc4a-c9a6-4476-8b71-5212aae44502 fwd="121.195.114.162" dyno=web.1 connect=1ms service=15ms status=304 bytes=669 +2017-01-05T14:20:34.141947+00:00 app[web.1]: I, [2017-01-05T14:20:34.141851 #4] INFO -- : [1c2dbc4a-c9a6-4476-8b71-5212aae44502] Started GET "/notify" for 121.195.114.162 at 2017-01-05 14:20:34 +0000 +2017-01-05T14:20:34.143444+00:00 app[web.1]: I, [2017-01-05T14:20:34.143388 #4] INFO -- : [1c2dbc4a-c9a6-4476-8b71-5212aae44502] Processing by ChatController#notify as JSON +2017-01-05T14:20:34.147305+00:00 app[web.1]: D, [2017-01-05T14:20:34.147236 #4] DEBUG -- : [1c2dbc4a-c9a6-4476-8b71-5212aae44502] User Load (1.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] +2017-01-05T14:20:34.151121+00:00 app[web.1]: D, [2017-01-05T14:20:34.151037 #4] DEBUG -- : [1c2dbc4a-c9a6-4476-8b71-5212aae44502]  (1.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = $1 AND "messages"."readed" = $2 [["recieve_user", 4], ["readed", false]] +2017-01-05T14:20:34.152043+00:00 app[web.1]: I, [2017-01-05T14:20:34.151968 #4] INFO -- : [1c2dbc4a-c9a6-4476-8b71-5212aae44502] Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 2.5ms) +2017-01-05T14:20:44.155317+00:00 heroku[router]: at=info method=GET path="/notify" host=se-guoren-test.herokuapp.com request_id=88ff0080-50d2-491a-b5a8-317f606b4296 fwd="121.195.114.162" dyno=web.1 connect=1ms service=11ms status=304 bytes=669 +2017-01-05T14:20:44.139463+00:00 app[web.1]: I, [2017-01-05T14:20:44.139385 #4] INFO -- : [88ff0080-50d2-491a-b5a8-317f606b4296] Started GET "/notify" for 121.195.114.162 at 2017-01-05 14:20:44 +0000 +2017-01-05T14:20:44.140108+00:00 app[web.1]: I, [2017-01-05T14:20:44.140057 #4] INFO -- : [88ff0080-50d2-491a-b5a8-317f606b4296] Processing by ChatController#notify as JSON +2017-01-05T14:20:44.143897+00:00 app[web.1]: D, [2017-01-05T14:20:44.143804 #4] DEBUG -- : [88ff0080-50d2-491a-b5a8-317f606b4296] User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] +2017-01-05T14:20:44.148170+00:00 app[web.1]: D, [2017-01-05T14:20:44.148102 #4] DEBUG -- : [88ff0080-50d2-491a-b5a8-317f606b4296]  (1.4ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = $1 AND "messages"."readed" = $2 [["recieve_user", 4], ["readed", false]] +2017-01-05T14:20:44.148658+00:00 app[web.1]: I, [2017-01-05T14:20:44.148590 #4] INFO -- : [88ff0080-50d2-491a-b5a8-317f606b4296] Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 3.0ms) +2017-01-05T14:20:52.760851+00:00 app[web.1]: I, [2017-01-05T14:20:52.760771 #4] INFO -- : [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] Started POST "/baidu" for 121.195.114.162 at 2017-01-05 14:20:52 +0000 +2017-01-05T14:20:52.761396+00:00 app[web.1]: F, [2017-01-05T14:20:52.761326 #4] FATAL -- : [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] +2017-01-05T14:20:52.761445+00:00 app[web.1]: F, [2017-01-05T14:20:52.761388 #4] FATAL -- : [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] ActionController::RoutingError (No route matches [POST] "/baidu"): +2017-01-05T14:20:52.761494+00:00 app[web.1]: F, [2017-01-05T14:20:52.761445 #4] FATAL -- : [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] +2017-01-05T14:20:52.761567+00:00 app[web.1]: F, [2017-01-05T14:20:52.761510 #4] FATAL -- : [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call' +2017-01-05T14:20:52.761569+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +2017-01-05T14:20:52.761576+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:36:in `call_app' +2017-01-05T14:20:52.761577+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `block in call' +2017-01-05T14:20:52.761578+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `block in tagged' +2017-01-05T14:20:52.761579+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:26:in `tagged' +2017-01-05T14:20:52.761579+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `tagged' +2017-01-05T14:20:52.761580+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `call' +2017-01-05T14:20:52.761581+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call' +2017-01-05T14:20:52.761581+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call' +2017-01-05T14:20:52.761582+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call' +2017-01-05T14:20:52.761583+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call' +2017-01-05T14:20:52.761583+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' +2017-01-05T14:20:52.761584+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call' +2017-01-05T14:20:52.761584+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/static.rb:136:in `call' +2017-01-05T14:20:52.761585+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/railties-5.0.1/lib/rails/engine.rb:522:in `call' +2017-01-05T14:20:52.761586+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/configuration.rb:225:in `call' +2017-01-05T14:20:52.761586+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/server.rb:578:in `handle_request' +2017-01-05T14:20:52.761587+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/server.rb:415:in `process_client' +2017-01-05T14:20:52.761588+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/server.rb:275:in `block in run' +2017-01-05T14:20:52.761588+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/thread_pool.rb:116:in `call' +2017-01-05T14:20:52.761589+00:00 app[web.1]: [6f2dfa49-16fa-4fa4-91ca-edc5d0968157] vendor/bundle/ruby/2.2.0/gems/puma-3.6.2/lib/puma/thread_pool.rb:116:in `block in spawn_thread' +2017-01-05T14:20:52.767706+00:00 heroku[router]: at=info method=POST path="/baidu" host=se-guoren-test.herokuapp.com request_id=6f2dfa49-16fa-4fa4-91ca-edc5d0968157 fwd="121.195.114.162" dyno=web.1 connect=1ms service=4ms status=404 bytes=1744 +2017-01-05T14:20:53.709999+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=se-guoren-test.herokuapp.com request_id=9bbc0df9-17df-40d4-b8db-32f8a3f8f381 fwd="121.195.114.162" dyno=web.1 connect=1ms service=1ms status=304 bytes=48