Added formatting to rest debug output