TS-2905: Fix IP logging to print '0' instead of error text.