JKHeadley / rest-hapi

🚀 A RESTful API generator for Node.js
https://resthapi.com
MIT License
1.19k stars 152 forks source link

feature: option for truncated logs #312

Closed JKHeadley closed 1 year ago

JKHeadley commented 1 year ago

This PR adds the truncateLogs config option that significantly shortens logs for readability.

codecov[bot] commented 1 year ago

Codecov Report

Merging #312 (227aaa6) into master (9ff1798) will decrease coverage by 0.93%. The diff coverage is 41.53%.

:exclamation: Current head 227aaa6 differs from pull request most recent head 2dbc65a. Consider uploading reports for the commit 2dbc65a to get more accurate results

@@            Coverage Diff             @@
##           master     #312      +/-   ##
==========================================
- Coverage   82.27%   81.33%   -0.94%     
==========================================
  Files          24       24              
  Lines        2809     2861      +52     
==========================================
+ Hits         2311     2327      +16     
- Misses        498      534      +36     
Impacted Files Coverage Δ
utilities/log-util.js 22.85% <0.00%> (-34.29%) :arrow_down:
utilities/query-helper.js 78.40% <ø> (ø)
utilities/handler-helper.js 82.34% <30.00%> (-0.54%) :arrow_down:
utilities/handler-helper-factory.js 86.29% <68.75%> (-6.85%) :arrow_down:
config.js 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more