diff --git a/src/cpp/model/Session.cpp b/src/cpp/model/Session.cpp index ab2c43003..694850fef 100644 --- a/src/cpp/model/Session.cpp +++ b/src/cpp/model/Session.cpp @@ -252,7 +252,7 @@ bool Session::updateEmailVerification(Poco::UInt64 emailVerificationCode) mSessionUser->setEmailChecked(); } updateState(SESSION_STATE_EMAIL_VERIFICATION_CODE_CHECKED); - printf("[%s] time: %s\n", funcName, usedTime.string().data()); + //printf("[%s] time: %s\n", funcName, usedTime.string().data()); return true; } @@ -537,7 +537,7 @@ bool Session::generateKeys(bool savePrivkey, bool savePassphrase) } else { if (savePassphrase) { - printf("[Session::generateKeys] create save passphrase task\n"); + //printf("[Session::generateKeys] create save passphrase task\n"); UniLib::controller::TaskPtr savePassphrase(new WritePassphraseIntoDB(mSessionUser->getDBId(), mPassphrase)); savePassphrase->setFinishCommand(new SessionStateUpdateCommand(SESSION_STATE_PASSPHRASE_WRITTEN, this)); savePassphrase->scheduleTask(savePassphrase); diff --git a/src/cpp/tasks/CPUShedulerThread.cpp b/src/cpp/tasks/CPUShedulerThread.cpp index 9b9d00e43..b7eff7fb5 100644 --- a/src/cpp/tasks/CPUShedulerThread.cpp +++ b/src/cpp/tasks/CPUShedulerThread.cpp @@ -37,7 +37,7 @@ namespace UniLib { #ifdef _UNI_LIB_DEBUG Profiler counter; //debug::CPUShedulerTasksLog* l = debug::CPUShedulerTasksLog::getInstance(); - const char* name = mWaitingTask->getName(); + std::string name = mWaitingTask->getName(); //l->addTaskLogEntry((HASH)mWaitingTask.getResourcePtrHolder(), mWaitingTask->getResourceType(), mName.data(), name); #endif if (!mWaitingTask->run()) { @@ -46,7 +46,7 @@ namespace UniLib { #ifdef _UNI_LIB_DEBUG //l->removeTaskLogEntry((HASH)mWaitingTask.getResourcePtrHolder()); mSpeedLog.information("%s used on thread: %s by Task: %s of: %s", - counter.string(), mName, mWaitingTask->getResourceType(), name); + counter.string(), mName, std::string(mWaitingTask->getResourceType()), name); #endif mWaitingTask = mParent->getNextUndoneTask(this); }