summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-04-24 18:01:00 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-04-24 18:01:00 (GMT)
commit5cf6ef99404a08c0e9d2ed4f6df79375fda11d4a (patch)
treebfd9a95fe77c15c2b076c8f99680d08355245689 /Swiften/TLS
parent2fb37ba9d088e0027560a7d4b2b0617043569d55 (diff)
downloadswift-5cf6ef99404a08c0e9d2ed4f6df79375fda11d4a.zip
swift-5cf6ef99404a08c0e9d2ed4f6df79375fda11d4a.tar.bz2
Statically check the log severity level.
Resolves: #1099
Diffstat (limited to 'Swiften/TLS')
-rw-r--r--Swiften/TLS/CAPICertificate.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Swiften/TLS/CAPICertificate.cpp b/Swiften/TLS/CAPICertificate.cpp
index 0083b6f..d10ae6d 100644
--- a/Swiften/TLS/CAPICertificate.cpp
+++ b/Swiften/TLS/CAPICertificate.cpp
@@ -276,25 +276,25 @@ bool CAPICertificate::checkIfSmartCardPresent () {
switch (dwState) {
case SCARD_ABSENT:
- SWIFT_LOG("DEBUG") << "Card absent." << std::endl;
+ SWIFT_LOG(debug) << "Card absent." << std::endl;
break;
case SCARD_PRESENT:
- SWIFT_LOG("DEBUG") << "Card present." << std::endl;
+ SWIFT_LOG(debug) << "Card present." << std::endl;
break;
case SCARD_SWALLOWED:
- SWIFT_LOG("DEBUG") << "Card swallowed." << std::endl;
+ SWIFT_LOG(debug) << "Card swallowed." << std::endl;
break;
case SCARD_POWERED:
- SWIFT_LOG("DEBUG") << "Card has power." << std::endl;
+ SWIFT_LOG(debug) << "Card has power." << std::endl;
break;
case SCARD_NEGOTIABLE:
- SWIFT_LOG("DEBUG") << "Card reset and waiting PTS negotiation." << std::endl;
+ SWIFT_LOG(debug) << "Card reset and waiting PTS negotiation." << std::endl;
break;
case SCARD_SPECIFIC:
- SWIFT_LOG("DEBUG") << "Card has specific communication protocols set." << std::endl;
+ SWIFT_LOG(debug) << "Card has specific communication protocols set." << std::endl;
break;
default:
- SWIFT_LOG("DEBUG") << "Unknown or unexpected card state." << std::endl;
+ SWIFT_LOG(debug) << "Unknown or unexpected card state." << std::endl;
break;
}