Skip to content

Commit

Permalink
Added more meaningful info message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikko Koppanen committed Jun 20, 2010
1 parent d8b4471 commit ab1c659
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/mongodb_store.cpp
Expand Up @@ -132,10 +132,7 @@ bool MongoDBStore::handleMessages(boost::shared_ptr<logentry_vector_t> messages)
}

string ns = database + "." + (categoryAsCollection ? categoryHandled : collection);

LOG_OPER("[%s] MongoDB saving messages into %s",
categoryHandled.c_str(), ns.c_str());


for (logentry_vector_t::iterator iter = messages->begin();
iter != messages->end();
++iter) {
Expand All @@ -160,7 +157,10 @@ bool MongoDBStore::handleMessages(boost::shared_ptr<logentry_vector_t> messages)
LOG_OPER("[%s] MongoDB store failed to write. Exception: %s",
categoryHandled.c_str(), e.what());
}
}
}

LOG_OPER("[%s] MongoDB stored <%ld> messages out of <%ld> into <%s>",
categoryHandled.c_str(), messagesHandled, messages->size(), ns.c_str());

if (!success && messagesHandled) {
// Something went wrong but we have handled something probably
Expand Down

0 comments on commit ab1c659

Please sign in to comment.