broke out actual log sending to its own func for flexibility