start debug logging only if debug runs when bootstrap.