Skip to content

Commit 0bac5ba

Browse files
authored
Merge pull request #47 from devsapp/fix-custom-py-errorlog
fix custom runtime python error log
2 parents 3eb8c38 + 1ddf01b commit 0bac5ba

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

custom-function/python37/fc-custom-python37-event/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: fc-custom-python37-event
33
Provider:
44
- 阿里云
5-
Version: 1.1.23
5+
Version: 1.1.24
66
Description: 快速部署一个基于custom runtime 的 Python3.7 Event 类型的 Hello World 到阿里云函数计算
77
HomePage: https://github.com/devsapp/start-fc
88
Tags:

custom-function/python37/fc-custom-python37-event/src/code/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ def event_invoke():
4848
"stack": trace
4949
}
5050
print(errRet)
51-
print("FC Invoke End RequestId: " + rid)
51+
print("FC Invoke End RequestId: " + rid +
52+
", Error: Unhandled function error")
5253
return errRet, 404, [("x-fc-status", "404")]
5354

5455
print("FC Invoke End RequestId: " + rid)

custom-function/python37/fc-custom-python37-http/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: fc-custom-python37-http
33
Provider:
44
- 阿里云
5-
Version: 1.1.23
5+
Version: 1.1.24
66
Description: 快速部署一个基于custom runtime 的 Python3.7 HTTP 类型的 Hello World 到阿里云函数计算
77
HomePage: https://github.com/devsapp/start-fc
88
Tags:

custom-function/python37/fc-custom-python37-http/src/code/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def event():
5252
"stack": trace
5353
}
5454
print(errRet)
55-
print("FC Invoke End RequestId: " + rid)
55+
print("FC Invoke End RequestId: " + rid +
56+
", Error: Unhandled function error")
5657
return errRet, 404, [("x-fc-status", "404")]
5758

5859
print("FC Invoke End RequestId: " + rid)

update.list

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
event-function/fc-event-java8
2-
http-function/fc-http-java8
1+
custom-function/python37/fc-custom-python37-event
2+
custom-function/python37/fc-custom-python37-http

0 commit comments

Comments
 (0)