• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

optimizely / javascript-sdk / 2932 / 7
78%
master: 78%

Build:
DEFAULT BRANCH: master
Ran 05 Oct 2021 05:40PM UTC
Files 72
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Oct 2021 05:30PM UTC coverage: 96.993%. Remained the same
SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH

push

travis-ci-com

web-flow
feat: Added optional args to `logger.log` to format string only when log level applies (#706)

## Summary
Message formatting is performance heavy. The logger takes formatted message as a parameter, which means message formatting is being done for all types of logs even in cases when the log level does not apply. This PR adds arguments array to the `log` function to carry token values. Logger already has the functionality to `sprintf` based on extra args if the log level applies. This will increase performance in cases where log level is restricted to more conservative ones such as `ERROR`.

## Test plan
- All Unit tests pass
- Manually tested thoroughly with optimizely-sdk package. A follow up PR for the main package will be created after this is merged and released.

976 of 1099 branches covered (88.81%)

Branch coverage included in aggregate %.

8894 of 9077 relevant lines covered (97.98%)

69.64 hits per line

Source Files on job 2932.7 (SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 2104
  • Travis Job 2932.7
  • 4f373971 on github
  • Prev Job for SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH on master (#2920.3)
  • Next Job for SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH on master (#2940.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc