Move smidge of logger logic.

Just to keep duplicate code from sitting around.