stop logging csrf errors for API

This commit is contained in:
Sam 2014-12-12 07:59:33 +11:00
parent b366ec7f15
commit 2535e22151
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,10 @@ if Rails.env.production?
/^ActionController::UnknownFormat/,
# suppress trackback spam bots
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ })
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ }),
# API calls, TODO fix this in rails
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /api_key/ })
]
end