fix debug logging filename
small optimization