fix: log psql console usage as well
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
b331163ce9
commit
afdb455b5a
1 changed files with 3 additions and 0 deletions
|
|
@ -513,9 +513,12 @@ def postgres(context, extra_args):
|
|||
"""
|
||||
Enter into postgres console for a given site.
|
||||
"""
|
||||
from frappe.utils import get_site_path
|
||||
|
||||
site = get_site(context)
|
||||
frappe.init(site=site)
|
||||
frappe.conf.db_type = "postgres"
|
||||
os.environ["PSQL_HISTORY"] = os.path.abspath(get_site_path("logs", "postgresql_console.log"))
|
||||
_enter_console(extra_args=extra_args)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue