Disable logging to string in unittest.
am: 26d8977280

Change-Id: I1e712f2aef9c31961066471348da15112fd6e45e