add info logging of system id

Oz Linden 2013-03-27 13:18:52 -04:00
parent 8154621527
commit e68ab0a563
1 changed files with 2 additions and 1 deletions

View File

@ -42,12 +42,13 @@ bool llHashedUniqueID(unsigned char id[MD5HEX_STR_SIZE])
hashed_unique_id.update(unique_id, MAC_ADDRESS_BYTES);
hashed_unique_id.finalize();
hashed_unique_id.hex_digest((char*)id);
LL_INFOS_ONCE("AppInit") << "System ID " << id << LL_ENDL;
}
else
{
idIsUnique = false;
memcpy(id,"00000000000000000000000000000000", MD5HEX_STR_SIZE);
llwarns << "Failed to get an id; cannot uniquely identify this machine." << llendl;
LL_WARNS_ONCE("AppInit") << "Failed to get an id; cannot uniquely identify this machine." << LL_ENDL;
}
return idIsUnique;
}