Skip to content

Add diagnostic logging for window management and autostart - #3255

Open
mrsteve0924 wants to merge 6 commits into
WayfireWM:masterfrom
mrsteve0924:app-id-logging-no-abi
Open

mrsteve0924 wants to merge 6 commits into
WayfireWM:masterfrom
mrsteve0924:app-id-logging-no-abi

Conversation

@mrsteve0924

Copy link
Copy Markdown
Contributor

I initially wanted to include application IDs in error messages to help with debugging. However, since application information is not always available where errors are logged, a broader implementation would potentially require fairly extensive changes for what is essentially a logging improvement.

Instead, I decided to focus on a few plugins and existing log messages where application IDs and other useful context are readily available, without introducing API or ABI changes.

Is this something that would be useful? Looking for comments/suggestions. thanks

Overview

This PR adds to Wayfire's logging to make troubleshooting easier by providing more context about applications, window management operations, and startup commands.

Changes

  • Autostart: Log configured entry names and commands, including automatically launched wf-shell components.
  • Move and resize: Include application IDs and output names when activating and deactivating these plugins.
  • Grid: Log slot assignments, edge and corner snapping, maximize and restore operations, including application IDs and output names.
  • XDG-shell: Include application IDs when mapping toplevel windows.
  • Fullscreen: Identify the application responsible for hiding and restoring panels.
  • Window rules: Include application IDs when rule execution fails.

Implementation

  • No public API or ABI changes.
  • No intentional changes to existing plugin behavior.
  • Existing centralized plugin activation logging is preserved.
  • Move, resize, and Grid logging uses the debug logging level to minimize unnecessary output during normal operation.

Testing

All six logging improvements have been tested locally, including moving windows between outputs, Grid snapping, fullscreen transitions, and an intentionally triggered window-rule execution error.

An abbreviated Wayfire log is attached demonstrating the new logging messages.

Each log addition is contained in a separate commit to facilitate review.

wayfire-logging-example-short.log

Signed-off-by: stephen finkel <mrsteve0924@verizon.net>
Assisted-by: ChatGPT:GPT-5.6 Sol
Include the fullscreen application's ID in the existing
"autohide panels" and "restore panels" debug messages.

Preserve the application ID throughout the fullscreen
promotion so it remains available when panels are restored.

Keep the original log format when no app ID is available.

Signed-off-by: stephen finkel <mrsteve0924@verizon.net>
Assisted-by: ChatGPT:GPT-5.6 Sol
Signed-off-by: stephen finkel <mrsteve0924@verizon.net>
Assisted-by: ChatGPT:GPT-5.6 Sol
Signed-off-by: stephen finkel <mrsteve0924@verizon.net>
Assisted-by: ChatGPT:GPT-5.6 Sol
Signed-off-by: stephen finkel <mrsteve0924@verizon.net>
Assisted-by: ChatGPT:GPT-5.6 Sol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant