fix when to log