summaryrefslogtreecommitdiff
path: root/src/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cc')
-rw-r--r--src/item.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/item.cc b/src/item.cc
index 426a2f1c..032a84cf 100644
--- a/src/item.cc
+++ b/src/item.cc
@@ -43,12 +43,14 @@ bool item_t::has_tag(const string& tag) const
return false;
}
string_map::const_iterator i = metadata->find(tag);
+#if defined(DEBUG_ON)
if (SHOW_DEBUG("item.meta")) {
if (i == metadata->end())
DEBUG("item.meta", "Item does not have this tag");
else
DEBUG("item.meta", "Item has the tag!");
}
+#endif
return i != metadata->end();
}