In production mode, in my logs, there are few entries of the following error:
E, [2017-07-06T06:18:48.957782 #29791] ERROR -- : Could not log "process_action.action_controller" event. SystemStackError: stack level too deep ["/home/ubuntu/.rvm/gems/ruby-2.1.2/gems/logstasher-0.9.0/lib/logstasher/active_support/log_subscriber.rb:100"]
Sometimes there are more than 100 lines of same error. Once I restart my server I start to get right logs, but after few hours or days it starts to give same error.
I have following code initializer/logstasher.rb
fields[:user] = { id: current_user.id, firstname: current_user.firstname, lastname: current_user.lastname, email: current_user.email }
In production mode, in my logs, there are few entries of the following error:
E, [2017-07-06T06:18:48.957782 #29791] ERROR -- : Could not log "process_action.action_controller" event. SystemStackError: stack level too deep ["/home/ubuntu/.rvm/gems/ruby-2.1.2/gems/logstasher-0.9.0/lib/logstasher/active_support/log_subscriber.rb:100"]
Sometimes there are more than 100 lines of same error. Once I restart my server I start to get right logs, but after few hours or days it starts to give same error.