diff --git a/.gitignore b/.gitignore index ad956cd..bbfb942 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,7 @@ # mac *.DS_Store .bashrc - +public/sync_failed_users.dic # Ignore all logfiles and tempfiles. /log/* /tmp/* diff --git a/app/jobs/sync_forge_job.rb b/app/jobs/sync_forge_job.rb index fdfa595..aa649a5 100644 --- a/app/jobs/sync_forge_job.rb +++ b/app/jobs/sync_forge_job.rb @@ -96,7 +96,7 @@ class SyncForgeJob < ApplicationJob new_user rescue Exception => e failed_dic = "public/sync_failed_users.dic" - File.open(failed_dic,"a+") do |file| + File.open(failed_dic,"a") do |file| file.puts "[\nTime---#{Time.now}\nuser_info---#{owner_params}\nerrors--#{e}]\n " end end