Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use "CRITICAL" stream for standard logging #219

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions download_extra_packages_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def __init__(self):
self.pth = join(pth, "packages")

def install(self):
lines = []
command = f'"{self.find_python()}" -m pip install -r "{self.file}" -t "{self.pth}" --upgrade'
print(sys.executable)
print(command)
lines.append(command)
QgsMessageLog.logMessage("About to run this command: ", level=Qgis.Info)
QgsMessageLog.logMessage(" => " + command, level=Qgis.Info)

lines = []
with subprocess.Popen(
command,
shell=True,
Expand All @@ -31,7 +31,7 @@ def install(self):
lines.extend(proc.stdout.readlines())

for line in lines:
QgsMessageLog.logMessage(str(line), level=Qgis.Critical)
QgsMessageLog.logMessage(str(line), level=Qgis.Info)
return lines

def find_python(self):
Expand Down