File size: 493 Bytes
d5bfab8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
#!/usr/bin/env ruby
# For debugging of the "sync" code
# Intended for LODA developers.
#
# This appends a timestamp to a logfile.
# And it's possible to tweak what is being returned "changed" or "nochange".
require 'time'
require_relative 'config'
timestamp = Time.now.utc.iso8601
log_file_path = File.join(Config.instance.dot_loda_rust, "miner_sync_debug_log.txt")
File.open(log_file_path, "a") do |f|
f << "Sync: #{timestamp}\n"
end
#puts "status: nochange"
puts "status: changed"
|