Print log_fn at end.