Skip to content

Commit f4c2221

Browse files
committed
use the logger object
1 parent cda1967 commit f4c2221

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apstools/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,10 +1011,10 @@ def plot_prune_fifo(bec, n, y, x):
10111011
for liveplot in bec._live_plots.values():
10121012
lp = liveplot.get(y.name)
10131013
if lp is None:
1014-
logging.debug(f"no LivePlot with name {y.name}")
1014+
logger.debug(f"no LivePlot with name {y.name}")
10151015
continue
10161016
if lp.x != x.name or lp.y != y.name:
1017-
logging.debug(f"no LivePlot with axes ('{x.name}', '{y.name}')")
1017+
logger.debug(f"no LivePlot with axes ('{x.name}', '{y.name}')")
10181018
continue
10191019

10201020
# pick out only the traces that contain plot data
@@ -1025,7 +1025,7 @@ def plot_prune_fifo(bec, n, y, x):
10251025
if len(tr._x) != 2 or len(tr._y) != 2 or tr._x[0] != tr._x[1]
10261026
]
10271027
if len(lines) > n:
1028-
logging.debug(f"limiting LivePlot({y.name}) to {n} traces")
1028+
logger.debug(f"limiting LivePlot({y.name}) to {n} traces")
10291029
lp.ax.lines = lines[-n:]
10301030
lp.ax.legend()
10311031
if n > 0:

0 commit comments

Comments
 (0)