Fix self logging