CB-5154 log formatting incorrectly to native

-only add format string if non-empty