Remove intermediate variable
Only compute the log file path once per call