From 5aabdc161826c3724856bfe63f56ee431353715b 2021-10-18 16:39:37 From: Matthias Bussonnier Date: 2021-10-18 16:39:37 Subject: [PATCH] Merge pull request #13198 from minrk/profiledir-full-log match log message for profile by name and path --- diff --git a/IPython/core/application.py b/IPython/core/application.py index db48ab2..85c9127 100644 --- a/IPython/core/application.py +++ b/IPython/core/application.py @@ -398,7 +398,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 @@ -418,7 +418,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_'):