From e7fb967d557c1962226c2d4fce8c0ed70bc4e672 Mon Sep 17 00:00:00 2001 From: yafeilee Date: Fri, 29 Jul 2016 09:24:25 +0800 Subject: [PATCH] warning -> warn --- app/controllers/comments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 5a9f203..b220db6 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -9,7 +9,7 @@ class CommentsController < ApplicationController def create unless request.xhr? - logger.warning 'attack action detected' + logger.warn "attack action detected: #{params}" redirect_to root_path end cookies[:name] = comment_params[:name]