Skip to content

Commit b2314d2

Browse files
committed
change verbosity level when creating hook scripts so the messages can be suppressed in tests
1 parent f1392cf commit b2314d2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2011-04-10 Doug Hellmann <[email protected]>
2+
3+
* virtualenvwrapper/user_scripts.py (make_hook): Change verbosity
4+
of message telling the user we have created a new hook script for
5+
them.
6+
17
2011-02-26 Doug Hellmann <[email protected]>
28

39
* docs/sphinx/conf.py: Just hard-code the version.

virtualenvwrapper/user_scripts.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ def run_script(script_path, *args):
2020
"""Execute a script in a subshell.
2121
"""
2222
if os.path.exists(script_path):
23-
# with open(script_path, 'rt') as f:
24-
# print '+' * 80
25-
# print f.read()
26-
# print '+' * 80
2723
cmd = [script_path] + list(args)
2824
log.debug('running %s', str(cmd))
2925
try:
@@ -107,7 +103,7 @@ def make_hook(filename, comment):
107103
"""
108104
filename = os.path.expanduser(os.path.expandvars(filename))
109105
if not os.path.exists(filename):
110-
log.warning('creating %s', filename)
106+
log.info('creating %s', filename)
111107
f = open(filename, 'w')
112108
try:
113109
f.write("""#!%(shell)s

0 commit comments

Comments
 (0)