Add Logging

This commit is contained in:
ZeldaZach 2025-02-11 20:38:01 -05:00
parent b8dc404de0
commit 227cb78751
No known key found for this signature in database
3 changed files with 5 additions and 0 deletions

View file

@ -46,6 +46,8 @@
# cockatrice_xml.xml_4_parser = false # cockatrice_xml.xml_4_parser = false
# card_list = false # card_list = false
# stack_zone = false
flow_layout.debug = false flow_layout.debug = false
flow_widget.debug = false flow_widget.debug = false
flow_widget.size.debug = false flow_widget.size.debug = false

View file

@ -78,6 +78,7 @@ void StackZone::handleDropEvent(const QList<CardDragItem *> &dragItems, CardZone
const auto &card = cards.at(0); const auto &card = cards.at(0);
if (card == nullptr) { if (card == nullptr) {
qCWarning(StackZoneLog) << "Attempted to move card from" << startZone->getName() << ", but was null";
return; return;
} }

View file

@ -3,6 +3,8 @@
#include "select_zone.h" #include "select_zone.h"
inline Q_LOGGING_CATEGORY(StackZoneLog, "stack_zone");
class StackZone : public SelectZone class StackZone : public SelectZone
{ {
Q_OBJECT Q_OBJECT