Improve performance when resolving persistent log file

pprof data showed that a significant amount of time was spent
Logging#logPersistent. Most of that time was actually spent doing IO
to resolve the filename to write to

Now, we simplify the logic to avoid the unnecessary IO

Bug: 168240195
Bug: 179235727
Test: atest LoggingTest

Change-Id: I3239bed53a97cc25549556404ac72067566f69e3
Merged-In: I3239bed53a97cc25549556404ac72067566f69e3
(cherry picked from commit b9e7f20386ce6efac5db1c346850e97a74dbc61f)
1 file changed