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

zwave-js / zwave-js-ui / 17433074741
20%

Build:
DEFAULT BRANCH: master
Ran 03 Sep 2025 12:15PM UTC
Jobs 1
Files 67
Run time 10min
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

03 Sep 2025 12:14PM UTC coverage: 20.507% (-0.003%) from 20.51%
17433074741

push

github

web-flow
feat: add source IP in request logs (#4356)

Adds the source IP address to HTTP request logs by modifying the morgan
logging configuration in `api/app.ts`.

**Changes:**
- Replaced predefined morgan formats (`'tiny'` and `'dev'`) with custom
format strings that include `:remote-addr`
- The new format is: `:remote-addr :method :url :status
:res[content-length] - :response-time ms`
- Applied to both color and no-color logging modes consistently

**Benefits:**
- Request logs now show the client IP address, improving debugging and
monitoring capabilities
- Works correctly with the existing `TRUST_PROXY` configuration to
extract real client IPs from proxy headers (X-Forwarded-For, etc.)
- Maintains backward compatibility with existing log parsing tools

**Example log output:**
```
2025-09-03 11:57:57.362 INFO APP: ::1 GET /health 404 1345 - 5.948 ms
2025-09-03 11:58:44.893 INFO APP: 192.168.1.100 POST /api/settings 200 156 - 12.334 ms
```

The `:remote-addr` token automatically handles IPv4/IPv6 addresses and
respects Express.js trust proxy settings for proper IP extraction when
deployed behind reverse proxies or load balancers.

Fixes #4355.

<!-- START COPILOT CODING AGENT TIPS -->
---

✨ Let Copilot coding agent [set things up for
you](https://github.com/zwave-js/zwave-js-ui/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: robertsLando <11502495+robertsLando@users.noreply.github.com>
Co-authored-by: robertsLando <daniel.sorridi@gmail.com>

346 of 452 branches covered (76.55%)

Branch coverage included in aggregate %.

0 of 6 new or added lines in 1 file covered. (0.0%)

3963 of 20560 relevant lines covered (19.28%)

1.23 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
0.0
0.0% api/app.ts
Jobs
ID Job ID Ran Files Coverage
1 17433074741.1 03 Sep 2025 12:15PM UTC 67
20.51
GitHub Action Run
Source Files on build 17433074741
  • Tree
  • List 67
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 7e87c322 on github
  • Prev Build on master (#17271048030)
  • Next Build on master (#17575577570)
  • Delete
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

© 2026 Coveralls, Inc