From bbe06df18ea988e0474b1a4472c5b16a74dd8757 Mon Sep 17 00:00:00 2001 From: Saugat Pachhai Date: Fri, 21 May 2021 13:20:49 +0545 Subject: [PATCH] ui: migrate dag (#6044) --- dvc/command/dag.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dvc/command/dag.py b/dvc/command/dag.py index 21840eb9e..07c519fbd 100644 --- a/dvc/command/dag.py +++ b/dvc/command/dag.py @@ -1,9 +1,7 @@ import argparse -import logging from dvc.command.base import CmdBase, append_doc_link - -logger = logging.getLogger(__name__) +from dvc.ui import ui def _show_ascii(G): @@ -101,7 +99,7 @@ class CmdDAG(CmdBase): ) if self.args.dot: - logger.info(_show_dot(G)) + ui.write(_show_dot(G)) else: from dvc.utils.pager import pager