Skip to content

Commit

Permalink
fix: log mariadb console usage
Browse files Browse the repository at this point in the history
(cherry picked from commit 2d75dbb)

# Conflicts:
#	frappe/commands/utils.py
  • Loading branch information
ankush authored and mergify[bot] committed Mar 12, 2024
1 parent dcb7429 commit 9797457
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frappe/commands/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,11 +480,19 @@ def mariadb(context, extra_args):
"""
Enter into mariadb console for a given site.
"""
from frappe.utils import get_site_path

site = get_site(context)
if not site:
raise SiteNotSpecifiedError
frappe.init(site=site)
<<<<<<< HEAD
_mariadb(extra_args=extra_args)
=======
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)
>>>>>>> 2d75dbb598 (fix: log mariadb console usage)


@click.command("postgres", context_settings=EXTRA_ARGS_CTX)
Expand Down

0 comments on commit 9797457

Please sign in to comment.