Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
funasr_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b520263d
authored
Mar 23, 2024
by
‘chizw’
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]日志优化
1 parent
b837c1d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
funasr_service.py
funasr_service.py
View file @
b520263
...
...
@@ -70,13 +70,13 @@ class model_output():
def
handle_process
(
message
:
str
):
try
:
log
.
info
(
f
"handle_process
process
name:{multiprocessing.current_process()},thread name:{threading.current_thread().name},"
f
"handle_process
_start process_
name:{multiprocessing.current_process()},thread name:{threading.current_thread().name},"
f
"Received task_id: {message}"
)
# 处理逻辑
start_time
=
time
.
time
()
task_id
=
json
.
loads
(
message
)[
"task_id"
]
deal_worker
(
task_id
)
log
.
info
(
f
"
funasr_handle_process
task_id:{task_id} 耗时:"
+
str
(
time
.
time
()
-
start_time
))
log
.
info
(
f
"
handle_process_end
task_id:{task_id} 耗时:"
+
str
(
time
.
time
()
-
start_time
))
except
Exception
as
e
:
log
.
error
(
"funasr handle_process Exception: "
+
str
(
traceback
.
format_exc
()))
...
...
Write
Preview
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