mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-02 13:11:55 -07:00
logging/format: use std::format_string to catch formatting string errors at compile time (#3377)
* fix(log): use constexpr format string * deprecate getFormat
This commit is contained in:
@@ -706,8 +706,4 @@ std::vector<SCallstackFrameInfo> getBacktrace() {
|
||||
void throwError(const std::string& err) {
|
||||
Debug::log(CRIT, "Critical error thrown: {}", err);
|
||||
throw std::runtime_error(err);
|
||||
}
|
||||
|
||||
void sendToLog(uint8_t level, const std::string& s) {
|
||||
Debug::log((LogLevel)level, s);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user