mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
Merge pull request #1461 from mroutis/init-logging
init: Improve information logging
This commit is contained in:
+12
-8
@@ -128,10 +128,10 @@ class Project(object):
|
||||
proj = Project(root_dir)
|
||||
|
||||
scm.add([config.config_file])
|
||||
|
||||
if scm.ignore_file():
|
||||
scm.add([os.path.join(dvc_dir, scm.ignore_file())])
|
||||
|
||||
logger.info('\nYou can now commit the changes to git.')
|
||||
logger.info('\nYou can now commit the changes to git.\n')
|
||||
|
||||
proj._welcome_message()
|
||||
|
||||
@@ -1234,20 +1234,24 @@ class Project(object):
|
||||
def _welcome_message(self):
|
||||
import colorama
|
||||
|
||||
logger.info(
|
||||
"\n"
|
||||
logger.box(
|
||||
"DVC has enabled anonymous aggregate usage analytics.\n"
|
||||
"Read the analytics documentation (and how to opt-out) here:\n"
|
||||
"{blue}https://dvc.org/doc/user-guide/analytics{nc}\n"
|
||||
"\n"
|
||||
"{blue}https://dvc.org/doc/user-guide/analytics{nc}"
|
||||
.format(
|
||||
blue=colorama.Fore.BLUE,
|
||||
nc=colorama.Fore.RESET
|
||||
),
|
||||
border_color='red'
|
||||
)
|
||||
|
||||
logger.info(
|
||||
"{yellow}What's next?{nc}\n"
|
||||
"{yellow}------------{nc}\n"
|
||||
"- Check out the documentation: {blue}https://dvc.org/doc{nc}\n"
|
||||
"- Get help and share ideas: {blue}https://dvc.org/chat{nc}\n"
|
||||
"- Star us on GitHub: {blue}https://github.com/iterative/dvc{nc}"
|
||||
|
||||
.format(yellow=colorama.Fore.YELLOW,
|
||||
blue=colorama.Fore.BLUE,
|
||||
green=colorama.Fore.GREEN,
|
||||
nc=colorama.Fore.RESET)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user