Skip to content

Light Switch Tool Generates Excessive Log Files (300GB+) #43026

@Wizardous

Description

@Wizardous

Microsoft PowerToys version

0.95.1

Installation method

Microsoft Store

Area(s) with issue?

Light Switch

Steps to reproduce

  1. Enable Light Switch tool in Power Toys.
  2. Set theme switch schedule to fixed times (e.g., 6:00 AM and 6:00 PM).
  3. Perform a few manual theme switches to test responsiveness.
  4. Leave the tool running overnight.
  5. Log in the next morning and observe disk usage.

✔️ Expected Behavior

Light Switch should switch themes at scheduled times without excessive logging or disk usage.

❌ Actual Behavior

  • Upon logging in the next morning, I discovered ~300GB of disk space had been consumed.
  • Investigation revealed two massive log files at: ~\AppData\Local\Microsoft\PowerToys\LightSwitch\Service\Logs\v0.95.1
  • The logs contained repeated entries every few milliseconds, suggesting a runaway logging loop.

Example snippet from the log:

[2025-10-27 23:05:01.662420] [p-30304] [t-23424] [info] [LightSwitchService] Manual override received while schedule OFF.
[2025-10-27 23:05:01.662427] [p-30304] [t-23424] [info] [LightSwitchService] Manual override received while schedule OFF.
...
(repeated hundreds of times per second)

  • I had to disable Light Switch and manually delete one log file to reclaim space.

Additional Information

  • OS: Windows 11 Pro
  • .NET version: 9.0.302
  • System Language: English (India)
  • Running as Admin: Yes

Other Software

None interacting directly with Light Switch

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't workingNeeds-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsPriority-0Bugs that we consider release-blocking/recall-class (P0)Product-LightSwitch

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions