debug: move to hyprutils' logger (#12673)
This commit is contained in:
parent
f88deb928a
commit
6175ecd4c4
147 changed files with 1696 additions and 1709 deletions
|
|
@ -75,14 +75,14 @@ CVirtualKeyboardV1Resource::CVirtualKeyboardV1Resource(SP<CZwpVirtualKeyboardV1>
|
|||
auto xkbContext = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
|
||||
CFileDescriptor keymapFd{fd};
|
||||
if UNLIKELY (!xkbContext) {
|
||||
LOGM(ERR, "xkbContext creation failed");
|
||||
LOGM(Log::ERR, "xkbContext creation failed");
|
||||
r->noMemory();
|
||||
return;
|
||||
}
|
||||
|
||||
auto keymapData = mmap(nullptr, len, PROT_READ, MAP_PRIVATE, keymapFd.get(), 0);
|
||||
if UNLIKELY (keymapData == MAP_FAILED) {
|
||||
LOGM(ERR, "keymapData alloc failed");
|
||||
LOGM(Log::ERR, "keymapData alloc failed");
|
||||
xkb_context_unref(xkbContext);
|
||||
r->noMemory();
|
||||
return;
|
||||
|
|
@ -92,7 +92,7 @@ CVirtualKeyboardV1Resource::CVirtualKeyboardV1Resource(SP<CZwpVirtualKeyboardV1>
|
|||
munmap(keymapData, len);
|
||||
|
||||
if UNLIKELY (!xkbKeymap) {
|
||||
LOGM(ERR, "xkbKeymap creation failed");
|
||||
LOGM(Log::ERR, "xkbKeymap creation failed");
|
||||
xkb_context_unref(xkbContext);
|
||||
r->noMemory();
|
||||
return;
|
||||
|
|
@ -171,7 +171,7 @@ void CVirtualKeyboardProtocol::onCreateKeeb(CZwpVirtualKeyboardManagerV1* pMgr,
|
|||
return;
|
||||
}
|
||||
|
||||
LOGM(LOG, "New VKeyboard at id {}", id);
|
||||
LOGM(Log::DEBUG, "New VKeyboard at id {}", id);
|
||||
|
||||
m_events.newKeyboard.emit(RESOURCE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue