Error in logging time