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

zwave-js / zwave-js-ui / 22992250849
18%

Build:
DEFAULT BRANCH: master
Ran 12 Mar 2026 08:04AM UTC
Jobs 1
Files 70
Run time 1min
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

12 Mar 2026 08:03AM UTC coverage: 18.3% (+0.003%) from 18.297%
22992250849

push

github

web-flow
fix: prevent logging to file when log is disabled (#4590)

- [x] Understand the issue: When "Log enabled" is off but "Log to file"
was previously enabled, log files are still created
- [x] Identify root cause in `api/lib/logger.ts`: The `customTransports`
function creates a file transport when `logToFile` is true, regardless
of whether `enabled` is false
- [x] Fix the `customTransports` function to not create file transport
when logging is disabled
- [x] Fix the incorrect hint text in Settings.vue
(`store/zwave-js-ui_%DATE%.log` should be `store/log/z-ui_%DATE%.log`)
- [x] Update tests to verify the fix
- [x] Run tests and linting to verify changes
- [x] Code review completed - no issues found
- [x] Security scan (CodeQL) completed - no issues found
- [x] Address PR feedback: Swap condition order to check `enabled`
before `logToFile`

<!-- START COPILOT ORIGINAL PROMPT -->



<details>

<summary>Original prompt</summary>

> 
> ----
> 
> *This section details on the original issue you should resolve*
> 
> <issue_title>Logging to file can occur while "Log enabled" is
off</issue_title>
> <issue_description>### Checklist
> 
> - [x] I am not using Home Assistant. Or: a developer has told me to
come here.
> - [x] I have checked the troubleshooting section and my problem is not
described there.
> - [x] I have read the changelog and my problem is not mentioned there.
> 
> ### Deploy method
> 
> Home Assistant Add-on
> 
> ### Z-Wave JS UI version
> 
> 11.12.0
> 
> ### ZwaveJS version
> 
> 15.21.0
> 
> ### Describe the bug
> 
> When "Log to file" is enabled under Settings -> General and "Log
enabled" is turned off, the "Log to file" option disappears, but remains
enabled, and new logs will be created in the store.
> 
> Also, and I'm not sure if this is Z-Wave JS App specific or not, the
text under the "Log to file" option incorrectly says "Store logs in a
file. Default: store/zwave-js-ui_%DATE%.log" The actual file names used
are more like store/log/z-ui_%DATE%... (continued)

335 of 445 branches covered (75.28%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

4054 of 23538 relevant lines covered (17.22%)

1.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22992250849.1 12 Mar 2026 08:04AM UTC 70
18.3
GitHub Action Run
Source Files on build 22992250849
  • Tree
  • List 70
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 6335fe75 on github
  • Prev Build on master (#22964763574)
  • Next Build on master (#23185554516)
  • 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