debug: move to hyprutils' logger (#12673)
This commit is contained in:
parent
f88deb928a
commit
6175ecd4c4
147 changed files with 1696 additions and 1709 deletions
|
|
@ -16,7 +16,7 @@ static void hcLogger(enum eHyprcursorLogLevel level, char* message) {
|
|||
if (level == HC_LOG_TRACE)
|
||||
return;
|
||||
|
||||
Debug::log(NONE, "[hc] {}", message);
|
||||
Log::logger->log(Log::DEBUG, "[hc] {}", message);
|
||||
}
|
||||
|
||||
CCursorBuffer::CCursorBuffer(cairo_surface_t* surf, const Vector2D& size_, const Vector2D& hot_) : m_hotspot(hot_), m_stride(cairo_image_surface_get_stride(surf)) {
|
||||
|
|
@ -83,11 +83,11 @@ CCursorManager::CCursorManager() {
|
|||
}
|
||||
|
||||
if (m_size <= 0) {
|
||||
Debug::log(WARN, "HYPRCURSOR_SIZE size not set, defaulting to size 24");
|
||||
Log::logger->log(Log::WARN, "HYPRCURSOR_SIZE size not set, defaulting to size 24");
|
||||
m_size = 24;
|
||||
}
|
||||
} else {
|
||||
Debug::log(ERR, "Hyprcursor failed loading theme \"{}\", falling back to Xcursor.", m_theme);
|
||||
Log::logger->log(Log::ERR, "Hyprcursor failed loading theme \"{}\", falling back to Xcursor.", m_theme);
|
||||
|
||||
auto const* SIZE = getenv("XCURSOR_SIZE");
|
||||
if (SIZE) {
|
||||
|
|
@ -97,7 +97,7 @@ CCursorManager::CCursorManager() {
|
|||
}
|
||||
|
||||
if (m_size <= 0) {
|
||||
Debug::log(WARN, "XCURSOR_SIZE size not set, defaulting to size 24");
|
||||
Log::logger->log(Log::WARN, "XCURSOR_SIZE size not set, defaulting to size 24");
|
||||
m_size = 24;
|
||||
}
|
||||
}
|
||||
|
|
@ -203,7 +203,7 @@ void CCursorManager::setCursorFromName(const std::string& name) {
|
|||
}
|
||||
|
||||
if (m_currentCursorShapeData.images.empty()) {
|
||||
Debug::log(ERR, "BUG THIS: No fallback found for a cursor in setCursorFromName");
|
||||
Log::logger->log(Log::ERR, "BUG THIS: No fallback found for a cursor in setCursorFromName");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -328,7 +328,7 @@ bool CCursorManager::changeTheme(const std::string& name, const int size) {
|
|||
|
||||
m_hyprcursor = makeUnique<Hyprcursor::CHyprcursorManager>(m_theme.empty() ? nullptr : m_theme.c_str(), options);
|
||||
if (!m_hyprcursor->valid()) {
|
||||
Debug::log(ERR, "Hyprcursor failed loading theme \"{}\", falling back to XCursor.", m_theme);
|
||||
Log::logger->log(Log::ERR, "Hyprcursor failed loading theme \"{}\", falling back to XCursor.", m_theme);
|
||||
m_xcursor->loadTheme(m_theme.empty() ? xcursor_theme : m_theme, m_size, m_cursorScale);
|
||||
}
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue