log_timestamp was being called twice and creating two different values - fixed