diff options
Diffstat (limited to 'src/account-server')
-rw-r--r-- | src/account-server/accounthandler.cpp | 4 | ||||
-rw-r--r-- | src/account-server/storage.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp index 6c1e10c8..4a4c73cf 100644 --- a/src/account-server/accounthandler.cpp +++ b/src/account-server/accounthandler.cpp @@ -1093,6 +1093,8 @@ void AccountHandler::handleStellarLogin(const std::string &token, const std::str auto acc = storage->getAccount(pubKey); if (acc) { + LOG_INFO("Stellar login: Found existing account for public key " << pubKey << ", ID " << acc->getID()); + // Set lastLogin date of the account. time_t login; time(&login); @@ -1110,6 +1112,8 @@ void AccountHandler::handleStellarLogin(const std::string &token, const std::str { // On-demand account creation for public keys acc = createAccount(pubKey, std::string(), std::string()); + + LOG_INFO("Stellar login: Created account for public key " << pubKey << ", ID " << acc->getID()); } MessageOut reply(APMSG_LOGIN_RESPONSE); diff --git a/src/account-server/storage.cpp b/src/account-server/storage.cpp index 9ff25f69..a1270dca 100644 --- a/src/account-server/storage.cpp +++ b/src/account-server/storage.cpp @@ -890,7 +890,7 @@ bool Storage::updateCharacter(const CharacterData &character) void Storage::addAccount(Account &account) { - assert(account.getCharacters().size() == 0); + assert(account.getCharacters().empty()); using namespace dal; |