Fixes build broken by #2789

fixed string type passed to logger so it compiles