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

Initial log with log-level passed by MySQLOptions under options. #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jacob953
Copy link

What type of PR is this?

bug

What this PR does / why we need it:

  1. Pass LogLevel from options.MySQLOptions to db.MySQLOptions with copier.
  2. Initial Logger if LogLevel between 1 and 4, which maps to Mode of Gorm(from Silence to Info). Otherwise, make it the default Logger of Gorm instead of Onex.

Which issue(s) this PR fixes:

Fixes #20

Special notes for your reviewer:

Thx for reviewing :)

@Jacob953
Copy link
Author

Jacob953 commented May 6, 2024

@colin404 plz take a look. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuration of log-level to Gorm never works
1 participant