Commits

Doug Hellmann committed b2314d2

change verbosity level when creating hook scripts so the messages can be suppressed in tests

Comments (0)

Files changed (2)

+2011-04-10  Doug Hellmann  <dhellmann@racemi.com>
+
+	* virtualenvwrapper/user_scripts.py (make_hook): Change verbosity
+	of message telling the user we have created a new hook script for
+	them.
+
 2011-02-26  Doug Hellmann  <dhellmann@racemi.com>
 
 	* docs/sphinx/conf.py: Just hard-code the version.

virtualenvwrapper/user_scripts.py

     """Execute a script in a subshell.
     """
     if os.path.exists(script_path):
-#         with open(script_path, 'rt') as f:
-#             print '+' * 80
-#             print f.read()
-#             print '+' * 80
         cmd = [script_path] + list(args)
         log.debug('running %s', str(cmd))
         try:
     """
     filename = os.path.expanduser(os.path.expandvars(filename))
     if not os.path.exists(filename):
-        log.warning('creating %s', filename)
+        log.info('creating %s', filename)
         f = open(filename, 'w')
         try:
             f.write("""#!%(shell)s
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.