From 5bfd875ffa5b886ba482a36a18ab58ca66aa3c64 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 17 Jul 2019 17:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20190716062401_add_ts_time_to_outputs.rb | 2 +- lib/educoder/tip_exception.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20190716062401_add_ts_time_to_outputs.rb b/db/migrate/20190716062401_add_ts_time_to_outputs.rb index 7f09ea818..8e0c55a78 100644 --- a/db/migrate/20190716062401_add_ts_time_to_outputs.rb +++ b/db/migrate/20190716062401_add_ts_time_to_outputs.rb @@ -1,5 +1,5 @@ class AddTsTimeToOutputs < ActiveRecord::Migration[5.2] def change - #add_column :outputs, :ts_time, :float + add_column :outputs, :ts_time, :float end end diff --git a/lib/educoder/tip_exception.rb b/lib/educoder/tip_exception.rb index 09f0228ac..08fd53ed6 100644 --- a/lib/educoder/tip_exception.rb +++ b/lib/educoder/tip_exception.rb @@ -13,7 +13,7 @@ module Educoder @status = status @message = message - Rails.logger.info("############# #{@status}, #{@message}") + Rails.logger.error("############# #{@status}, #{@message}") end def tip_json