ARC-stuff / loda-rust /script /miner_sync_debug.rb
Alignment-Lab-AI's picture
Upload folder using huggingface_hub
d5bfab8 verified
#!/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"