Commit 9c16f13a authored by Ronan's avatar Ronan

feat(SmartTransaction): explicit class name in log

parent 86493a15
......@@ -37,15 +37,15 @@ LINPHONE_BEGIN_NAMESPACE
class SmartTransaction {
public:
SmartTransaction (soci::session *session, const char *name) : mTransaction(*session), mName(name) {
lInfo() << "Start transaction " << this << " in `" << mName << "`.";
lInfo() << "Start transaction " << this << " in MainDb::" << mName << ".";
}
~SmartTransaction () {
lInfo() << "Rollback transaction " << this << " in `" << mName << "`.";
lInfo() << "Rollback transaction " << this << " in MainDb::" << mName << ".";
}
void commit () {
lInfo() << "Commit transaction " << this << " in `" << mName << "`.";
lInfo() << "Commit transaction " << this << " in MainDb::" << mName << ".";
mTransaction.commit();
}
......
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