forked from Fediversity/Fediversity
use proper logger
This commit is contained in:
parent
8a50680b9f
commit
f87275e384
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ from enum import Enum
|
||||||
import json
|
import json
|
||||||
from os.path import expanduser
|
from os.path import expanduser
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from django.urls import reverse_lazy
|
from django.urls import reverse_lazy
|
||||||
|
@ -158,5 +159,5 @@ class DeploymentStatus(ConfigurationForm):
|
||||||
"-lock=false",
|
"-lock=false",
|
||||||
]
|
]
|
||||||
deployment_result = subprocess.run(cmd, cwd=cwd, env=env)
|
deployment_result = subprocess.run(cmd, cwd=cwd, env=env)
|
||||||
print(deployment_result)
|
logging.info(deployment_result)
|
||||||
return deployment_result, deployment_params
|
return deployment_result, deployment_params
|
||||||
|
|
Loading…
Add table
Reference in a new issue