Skip to content
Browse files

Мелкие правки.

  • Loading branch information...
1 parent 19e5127 commit ec0beba0fe60a3df41a0e1129ceac1bfcaba94e8 @Tyralion Tyralion committed Feb 14, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/anlas_import/manager.rb
  2. +2 −2 lib/anlas_import/worker.rb
View
2 lib/anlas_import/manager.rb
@@ -27,7 +27,7 @@ def run
def log(msg = "")
create_logger unless @logger
- @logger.error(msg) if @logger
+ @logger.error(msg)
msg
end # log
View
4 lib/anlas_import/worker.rb
@@ -16,13 +16,13 @@ def initialize(file, manager)
def parse
- log "[#{Time.now.strftime('%H:%M:%S %d-%m-%Y')}] Обработка файлов импорта ============================"
+ log "[#{Time.now.strftime('%H:%M:%S %d-%m-%Y')}] Обработка файлов импорта ============================\n"
unless @file && ::FileTest.exists?(@file)
log "Файл не найден: #{@file}"
else
- log(@file)
+ log "Файл: #{@file}"
start = Time.now.to_i

0 comments on commit ec0beba

Please sign in to comment.
Something went wrong with that request. Please try again.