Output log messages to stdout in rakefile, fix bug with marking records as complete