fix logging format string function.