Compare commits

..

No commits in common. "f23e28a157f5fd7111a901899fb20f3cb4c9bf77" and "da74964cd8a1f71e75a28ca10f458a1e7c8d9bfa" have entirely different histories.

View file

@ -50,7 +50,7 @@ class Baktainer::Runner
@ssl_options = ssl_options @ssl_options = ssl_options
Docker.url = @url Docker.url = @url
setup_ssl setup_ssl
LOGGER.level = ENV['LOG_LEVEL'].to_sym|| :info LOGGER.level = ENV['LOG_LEVEL'] || :debug
end end
def perform_backup def perform_backup
@ -81,7 +81,8 @@ class Baktainer::Runner
loop do loop do
now = Time.now now = Time.now
next_run = @cron.next.first next_run = @cron.next.first
sleep_duration = next_run - now # sleep_duration = next_run - now
sleep_duration = 5
LOGGER.info("Sleeping for #{sleep_duration} seconds until #{next_run}.") LOGGER.info("Sleeping for #{sleep_duration} seconds until #{next_run}.")
sleep(sleep_duration) sleep(sleep_duration)
perform_backup perform_backup