Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
qiuqunfeng
waf-console
Commits
a95c35e7
Commit
a95c35e7
authored
Jun 19, 2025
by
qiuqunfeng
Browse files
fix: add log for dns
parent
361d8399
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
cmd/app/cmd.go
cmd/app/cmd.go
+1
-0
No files found.
cmd/app/cmd.go
View file @
a95c35e7
...
...
@@ -35,6 +35,7 @@ func NewRootCommand() *cobra.Command {
var
err
error
if
dbConfig
!=
nil
{
dns
:=
fmt
.
Sprintf
(
"%s:%s@tcp(%s:%s)/%s?charset=utf8mb4&parseTime=True&loc=Local"
,
dbConfig
.
User
,
dbConfig
.
Password
,
dbConfig
.
Host
,
dbConfig
.
Port
,
dbConfig
.
Database
)
log
.
Info
()
.
Msgf
(
"dns: %s"
,
dns
)
db
,
err
=
gorm
.
Open
(
mysql
.
Open
(
dns
),
&
gorm
.
Config
{})
if
err
!=
nil
{
panic
(
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment