modified "fmt" to "stringOrFormat" when logging