{"action":"opened","issue":{"url":"https://api.github.com/repos/reevoo/sapience-rb/issues/19","repository_url":"https://api.github.com/repos/reevoo/sapience-rb","labels_url":"https://api.github.com/repos/reevoo/sapience-rb/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/reevoo/sapience-rb/issues/19/comments","events_url":"https://api.github.com/repos/reevoo/sapience-rb/issues/19/events","html_url":"https://github.com/reevoo/sapience-rb/issues/19","id":183979964,"number":19,"title":"Double logging in Grape apps","user":{"login":"ionut998","id":1156644,"avatar_url":"https://avatars.githubusercontent.com/u/1156644?v=3","gravatar_id":"","url":"https://api.github.com/users/ionut998","html_url":"https://github.com/ionut998","followers_url":"https://api.github.com/users/ionut998/followers","following_url":"https://api.github.com/users/ionut998/following{/other_user}","gists_url":"https://api.github.com/users/ionut998/gists{/gist_id}","starred_url":"https://api.github.com/users/ionut998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ionut998/subscriptions","organizations_url":"https://api.github.com/users/ionut998/orgs","repos_url":"https://api.github.com/users/ionut998/repos","events_url":"https://api.github.com/users/ionut998/events{/privacy}","received_events_url":"https://api.github.com/users/ionut998/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-19T14:35:49Z","updated_at":"2016-10-19T14:35:49Z","closed_at":null,"body":"When adding this to `client_portal-admin` or `tableau_api_gateway`, we also noticed that the following would get logged to `STDOUT`:\r\n\r\n```\r\n2016-10-19 15:28:29.965693 I [84179:70167660980600 base.rb:33] ClientPortal::API -- { :method => \"DELETE\", :request_path => \"/api/v1/session\", :format => nil, :status => 200, :class_name => \"ClientPortal::API::UserAuthentication\", :action => \"index\", :host => \"localhost\", :ip => \"::1\", :ua => \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\", :tags => [], :params => {}, :runtimes => { :total => 4.69, :view => 4.69, :db => 0.0 } }\r\n::1 - - [19/Oct/2016:15:28:29 +0100] \"DELETE /api/v1/session HTTP/1.1\" 200 23 0.0089\r\n::1 - - [19/Oct/2016:15:28:34 +0100] \"OPTIONS /api/v1/session HTTP/1.1\" 200 - 0.0012\r\n::1 - - [19/Oct/2016:15:28:35 +0100] \"POST /api/v1/session HTTP/1.1\" 201 1395 0.4905\r\n2016-10-19 15:28:35.431202 I [84179:70167653252460 base.rb:33] ClientPortal::API -- { :method => \"POST\", :request_path => \"/api/v1/session\", :format => \"json;charset=UTF-8\", :status => 201, :class_name => \"ClientPortal::API::UserAuthentication\", :action => \"index\", :host => \"localhost\", :ip => \"::1\", :ua => \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\", :tags => [], :params => { \"email\" => \"marketing@reevoo.com\", \"password\" => \"[FILTERED]\" }, :runtimes => { :total => 487.942, :view => 487.942, :db => 0.0 } }\r\n2016-10-19 15:28:35.440654 I [84179:70167641540320 base.rb:33] ClientPortal::API -- { :method => \"GET\", :request_path => \"/api/v1/session\", :format => nil, :status => 200, :class_name => \"ClientPortal::API::UserAuthentication\", :action => \"index\", :host => \"localhost\", :ip => \"::1\", :ua => \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\", :tags => [], :params => {}, :runtimes => { :total => 2.611, :view => 2.611, :db => 0.0 } }\r\n```\r\n\r\nWhat's odd about this is that we appear to be logging both:\r\n\r\n1. Request in `Sapience` format\r\n2. Request in `Grape` format\r\n\r\nOur configuration for default/development is:\r\n\r\n```yaml\r\ndefault:\r\n  app_name: client_portal-admin\r\n\r\ndevelopment:\r\n  log_level: debug\r\n  appenders:\r\n    - stream:\r\n        io: STDOUT\r\n        formatter: color\r\n    - stream:\r\n        file_name: log/development.log\r\n        formatter: color\r\n```\r\n\r\nWe would only expect to see the `Sapience` logging to `STDOUT` with this configuration."}}
{"actor":{"display_login":"ionut998"}}