bug variable name wrong for logging path