From 7e83a129f6bd123e2aab516875c874e2f59f5cd1 2021-10-18 16:39:43 From: Matthias Bussonnier Date: 2021-10-18 16:39:43 Subject: [PATCH] Backport PR #13198: match log message for profile by name and path --- diff --git a/IPython/core/application.py b/IPython/core/application.py index 93639d8..8188898 100644 --- a/IPython/core/application.py +++ b/IPython/core/application.py @@ -374,7 +374,7 @@ class BaseIPythonApplication(Application): self.log.fatal("Profile %r not found."%self.profile) self.exit(1) else: - self.log.debug("Using existing profile dir: %r"%p.location) + self.log.debug(f"Using existing profile dir: {p.location!r}") else: location = self.config.ProfileDir.location # location is fully specified @@ -394,7 +394,7 @@ class BaseIPythonApplication(Application): self.log.fatal("Profile directory %r not found."%location) self.exit(1) else: - self.log.info("Using existing profile dir: %r"%location) + self.log.debug(f"Using existing profile dir: {p.location!r}") # if profile_dir is specified explicitly, set profile name dir_name = os.path.basename(p.location) if dir_name.startswith('profile_'):