Commit 4a183c41 authored by groot's avatar groot
Browse files

add log

parent 736c348c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -179,6 +179,11 @@ Cache<ItemObj>::print() {
    }

    SERVER_LOG_DEBUG << "[Cache item count]: " << cache_count;
#if 0
    for (auto it = lru_.begin(); it != lru_.end(); ++it) {
        SERVER_LOG_DEBUG << it->first;
    }
#endif
    SERVER_LOG_DEBUG << "[Cache usage]: " << usage_ << " bytes";
    SERVER_LOG_DEBUG << "[Cache capacity]: " << capacity_ << " bytes";
}