Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-queue-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3a91de73
authored
Mar 03, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
关闭日志
parent
2b941947
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
order/goods_remind/main.go
special/activity_view_statistics/logs/2021-02-04.log
special/activity_view_statistics/logs/2021-02-04.log.wf
order/goods_remind/main.go
View file @
3a91de73
...
...
@@ -41,6 +41,14 @@ func initArgs() {
func
initDB
()
{
dsn
:=
util
.
Configs
.
Liexin_databases
.
Dns
engine
,
err
=
gorose
.
Open
(
&
gorose
.
Config
{
Driver
:
"mysql"
,
Dsn
:
dsn
})
engine
.
Use
(
func
(
eg
*
gorose
.
Engin
)
{
eg
.
SetLogger
(
gorose
.
NewLogger
(
&
gorose
.
LogOption
{
FilePath
:
"./log"
,
EnableSqlLog
:
false
,
EnableSlowLog
:
5
,
EnableErrorLog
:
false
,
}))
})
if
err
!=
nil
{
panic
(
err
)
}
...
...
special/activity_view_statistics/logs/2021-02-04.log
0 → 100644
View file @
3a91de73
File mode changed
special/activity_view_statistics/logs/2021-02-04.log.wf
0 → 100644
View file @
3a91de73
File mode changed
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