Skip to content

Commit 6138eea

Browse files
committed
Don't use format in log. Use log builtin capabilities.
1 parent 8478101 commit 6138eea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nbviewer/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def fetch_kwargs(self):
497497
if self.proxy_host:
498498
fetch_kwargs.update(proxy_host=self.proxy_host, proxy_port=self.proxy_port)
499499
self.log.info(
500-
"Using web proxy {proxy_host}:{proxy_port}." "".format(**fetch_kwargs)
500+
"Using web proxy %(proxy_host)s:%(proxy_port).", fetch_kwargs
501501
)
502502

503503
if self.no_check_certificate:
@@ -579,7 +579,7 @@ def static_paths(self):
579579
def template_paths(self):
580580
default_template_path = pjoin(here, "templates")
581581
if self.template_path:
582-
self.log.info("Using custom template path {}".format(self.template_path))
582+
self.log.info("Using custom template path %()s", self.template_path)
583583
template_paths = [self.template_path, default_template_path]
584584
else:
585585
template_paths = [default_template_path]

0 commit comments

Comments
 (0)