Fix error in logger code

I ran across this error when turning on puppet support.