Merge pull request #4358 from labruzese/master

Moved workspace id failing to parse from an error to part of the trace
This commit is contained in:
Alexis Rouillard
2025-10-01 14:23:59 +02:00
committed by GitHub

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