Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: output serverless error in some environment #1030

Merged
merged 3 commits into from
May 7, 2021
Merged

Conversation

czy88840616
Copy link
Member

开放特定的环境变量下的堆栈输出,方便开发和排错。同时,增加一个特定的环境变量,用于明确需要显示错误堆栈的场景。

process.env.SERVERLESS_OUTPUT_ERROR_STACK = 'true'

@gitpod-io
Copy link

gitpod-io bot commented May 5, 2021

@codecov-commenter
Copy link

codecov-commenter commented May 6, 2021

Codecov Report

Merging #1030 (6b623ed) into 2.x (5735ccc) will increase coverage by 0.00%.
The diff coverage is 90.90%.

Impacted file tree graph

@@           Coverage Diff           @@
##              2.x    #1030   +/-   ##
=======================================
  Coverage   85.97%   85.98%           
=======================================
  Files         213      213           
  Lines        8245     8247    +2     
  Branches     1613     1553   -60     
=======================================
+ Hits         7089     7091    +2     
  Misses       1107     1107           
  Partials       49       49           
Impacted Files Coverage Δ
...es-serverless/serverless-fc-starter/src/runtime.ts 86.04% <83.33%> (+0.10%) ⬆️
...s-serverless/serverless-scf-starter/src/runtime.ts 93.15% <100.00%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5735ccc...6b623ed. Read the comment docs.

@czy88840616 czy88840616 merged commit b162b89 into 2.x May 7, 2021
@czy88840616 czy88840616 deleted the fix_output_error branch May 7, 2021 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants