aboutsummaryrefslogtreecommitdiffstats
path: root/routing.h
diff options
context:
space:
mode:
authorAntony Woods <acron1@gmail.com>2014-05-20 17:17:56 +0100
committerAntony Woods <acron1@gmail.com>2014-05-20 17:17:56 +0100
commitdccb246cf8ba7b5480320088a817c29a4a7c8da3 (patch)
treec251f3ab13aaf3b8a5f76afe0d3ddd100db0c3b6 /routing.h
parent62ace917d325040bbf3015536d2ad3725b711c6d (diff)
downloadcrow-dccb246cf8ba7b5480320088a817c29a4a7c8da3.tar.gz
crow-dccb246cf8ba7b5480320088a817c29a4a7c8da3.zip
Added primitive logging
Diffstat (limited to 'routing.h')
-rw-r--r--routing.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/routing.h b/routing.h
index e69a52b..a338d4a 100644
--- a/routing.h
+++ b/routing.h
@@ -584,9 +584,9 @@ public:
if (rule_index >= rules_.size())
throw std::runtime_error("Trie internal structure corrupted!");
-#ifdef CROW_ENABLE_LOGGING
- std::cerr << req.url << ' ' << ((TaggedRule<>*)rules_[rule_index].get())->rule_ << std::endl;
-#endif
+
+ CROW_LOG_INFO << req.url << ' ' << ((TaggedRule<>*)rules_[rule_index].get())->rule_;
+
return rules_[rule_index]->handle(req, found.second);
}