Simplify log to avoid recursion