Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0a72fac6
authored
2021-03-23 18:47:14 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix log
1 parent
f5fde5ee
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletions
src/apps/doc/management/commands/ocr_process.py
src/common/mixins.py
src/settings/conf/logging.conf
src/apps/doc/management/commands/ocr_process.py
View file @
0a72fac
This diff is collapsed.
Click to expand it.
src/common/mixins.py
View file @
0a72fac
...
...
@@ -38,7 +38,7 @@ class GenericExceptionMixin:
class
LoggerMixin
:
running_log
=
logging
.
getLogger
(
'running'
)
exception_log
=
logging
.
getLogger
(
'exception'
)
cronjob_log
=
logging
.
getLogger
(
'cronjob
'
)
online_log
=
logging
.
getLogger
(
'online
'
)
folder_log
=
logging
.
getLogger
(
'folder'
)
bs_log
=
logging
.
getLogger
(
'bs'
)
license_log
=
logging
.
getLogger
(
'license'
)
...
...
src/settings/conf/logging.conf
View file @
0a72fac
[
loggers
]
;
online
--> 线上
OCR
日志:
ocr_process
.
py
;
folder
--> 线下
OCR
日志:
folder_ocr_process
.
py
;
bs
--> 线上流水识别结果日志,用于生成每日申请号-版式报表:
bs_statistics
.
py
;
license
--> 线上证件识别结果日志,用于偶尔生成结果报表:
license_statistics
.
py
;
idcard
--> 线上身份证识别结果日志,用于生成每日、每月身份证报表:
idcard_daily
.
py
、
idcard_monthly
.
py
;
compare
-->
celery
compare
日志
keys
=
root
,
running
,
exception
,
online
,
folder
,
bs
,
license
,
idcard
,
compare
,
django
.
db
.
backends
[
handlers
]
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment