mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
Modify logging level of "Requirement.txt already exists" to warning
This commit is contained in:
parent
9a1f9e87dd
commit
2c4ad02bfb
@ -166,8 +166,8 @@ def init(args):
|
||||
os.path.join(args['<path>'], "requirements.txt"))
|
||||
|
||||
if not args["--savepath"] and not args["--force"] and os.path.exists(path):
|
||||
logging.info("Requirements.txt already exists, "
|
||||
"use --force to overwrite it")
|
||||
logging.warning("Requirements.txt already exists, "
|
||||
"use --force to overwrite it")
|
||||
return
|
||||
generate_requirements_file(path, imports)
|
||||
logging.info("Successfully saved requirements file in " + path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user