Merge pull request #25366 from ankush/mariadb_logging
fix: log mariadb console usage
This commit is contained in:
commit
532e1ef402
1 changed files with 3 additions and 0 deletions
|
|
@ -497,9 +497,12 @@ def mariadb(context, extra_args):
|
|||
"""
|
||||
Enter into mariadb console for a given site.
|
||||
"""
|
||||
from frappe.utils import get_site_path
|
||||
|
||||
site = get_site(context)
|
||||
frappe.init(site=site)
|
||||
frappe.conf.db_type = "mariadb"
|
||||
os.environ["MYSQL_HISTFILE"] = os.path.abspath(get_site_path("logs", "mariadb_console.log"))
|
||||
_enter_console(extra_args=extra_args)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue