Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
python_script
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
142afe69
authored
Aug 02, 2024
by
larosa
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
modify log path
parent
c78281a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
push.py
push.py
View file @
142afe69
...
@@ -7,7 +7,8 @@ import logging
...
@@ -7,7 +7,8 @@ import logging
config_toml
=
"/data/golang/src/europa-erp-go/manifest/config/config.toml"
config_toml
=
"/data/golang/src/europa-erp-go/manifest/config/config.toml"
config
=
toml
.
load
(
config_toml
)
config
=
toml
.
load
(
config_toml
)
logging
.
basicConfig
(
level
=
logging
.
INFO
,
filename
=
'result.log'
,
format
=
'
%(asctime)
s -
%(name)
s -
%(levelname)
s -
%(message)
s'
)
log_path
=
"/data/golang/src/europa-erp-go/scripts/result.log"
logging
.
basicConfig
(
level
=
logging
.
INFO
,
filename
=
log_path
,
format
=
'
%(asctime)
s -
%(name)
s -
%(levelname)
s -
%(message)
s'
)
logger
=
logging
.
getLogger
(
"push.py"
)
logger
=
logging
.
getLogger
(
"push.py"
)
# 生产环境请修改rabbitmq连接信息
# 生产环境请修改rabbitmq连接信息
...
...
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