Moved workspace id failing to parse from an error to part of the trace.

With named persistent workspaces it is expected behavior that they have
no id since their workspace may not have been created by hyprland yet.
This commit is contained in:
Skylar Abruzese
2025-08-09 18:33:35 -04:00
parent 41de8964f1
commit 64b64d0316

View File

@ -1129,9 +1129,9 @@ std::optional<int> Workspaces::parseWorkspaceId(std::string const &workspaceIdSt
try {
return workspaceIdStr == "special" ? -99 : std::stoi(workspaceIdStr);
} catch (std::exception const &e) {
spdlog::error("Failed to parse workspace ID: {}", e.what());
spdlog::debug("Workspace \"{}\" is not bound to an id: {}", workspaceIdStr, e.what());
return std::nullopt;
}
}
} // namespace waybar::modules::hyprland
} // namespace waybar::modules::hyprland