Unverified Commit 93625292 authored by Mark Stenglein's avatar Mark Stenglein
Browse files

remove some annoying logging I put in

parent a7aa16ad
......@@ -18,12 +18,12 @@ router.get('/api/json/classes/:SEMSLUG', function(req, res) {
{
jsonSlugCache[slug].timesUsed++;
console.log(jsonSlugCache[slug].timesUsed)
console.log(jsonSlugCache[slug].tiemsUsed);
res.send(jsonSlugCache[slug]['value']);
}
else {
// find each person with matching slug
var query = Semester.findOne({ 'slug': slug });
query.select('classes');
query.exec(function (err, semester) {
if (err || (! semester)) {
res.json({
......@@ -44,7 +44,6 @@ router.get('/api/json/classes/:SEMSLUG', function(req, res) {
delete jsonSlugCache[jsonSlugCache.slugs[leastUsed]];
jsonSlugCache.slugs.splice(leastUsed, 1);
}
console.log(JSON.stringify(semester))
jsonSlugCache[slug] = {
'timesUsed' : 1
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment