File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1111import colorama
1212
1313
14+ FOOTER = (
15+ "\n {yellow}Having any troubles?{nc}"
16+ " Hit us up at {blue}https://dvc.org/support{nc},"
17+ " we are always happy to help!"
18+ ).format (
19+ blue = colorama .Fore .BLUE ,
20+ nc = colorama .Fore .RESET ,
21+ yellow = colorama .Fore .YELLOW ,
22+ )
23+
24+
1425class LoggingException (Exception ):
1526 def __init__ (self , record ):
1627 msg = "failed to log {}" .format (str (record ))
Original file line number Diff line number Diff line change 33from __future__ import unicode_literals
44
55import logging
6- import colorama
6+ import sys
77
88from dvc .cli import parse_args
99from dvc .lock import LockError
10+ from dvc .logger import FOOTER
1011from dvc .config import ConfigError
1112from dvc .analytics import Analytics
1213from dvc .exceptions import NotDvcRepoError , DvcParserError
1718
1819logger = logging .getLogger ("dvc" )
1920
20- footer = (
21- "\n {yellow}Having any troubles?{nc}"
22- " Hit us up at {blue}https://dvc.org/support{nc},"
23- " we are always happy to help!"
24- ).format (
25- blue = colorama .Fore .BLUE ,
26- nc = colorama .Fore .RESET ,
27- yellow = colorama .Fore .YELLOW ,
28- )
29-
3021
3122def main (argv = None ):
3223 """Run dvc CLI command.
@@ -87,7 +78,7 @@ def main(argv=None):
8778 clean_repos ()
8879
8980 if ret != 0 :
90- logger . info ( footer )
81+ print ( FOOTER , file = sys . stderr )
9182
9283 Analytics ().send_cmd (cmd , args , ret )
9384
You can’t perform that action at this time.
0 commit comments