Skip to content
Snippets Groups Projects
Commit 2cb7218d authored by Gilbert Gonzales's avatar Gilbert Gonzales
Browse files

CHUI-875 (Viewer experiences a 10s delay on dnd (do not disturb) notification...

CHUI-875 (Viewer experiences a 10s delay on dnd (do not disturb) notification loading): For now adding logging when reading from persistent notifications and from dnd notifications.
parent 9e3ec04b
No related branches found
No related tags found
No related merge requests found
...@@ -132,6 +132,8 @@ void LLDoNotDisturbNotificationStorage::loadNotifications() ...@@ -132,6 +132,8 @@ void LLDoNotDisturbNotificationStorage::loadNotifications()
{ {
LLFastTimer _(FTM_LOAD_DND_NOTIFICATIONS); LLFastTimer _(FTM_LOAD_DND_NOTIFICATIONS);
LL_INFOS("LLDoNotDisturbNotificationStorage") << "start loading notifications" << LL_ENDL;
LLSD input; LLSD input;
if (!readNotifications(input) ||input.isUndefined()) if (!readNotifications(input) ||input.isUndefined())
{ {
...@@ -225,6 +227,8 @@ void LLDoNotDisturbNotificationStorage::loadNotifications() ...@@ -225,6 +227,8 @@ void LLDoNotDisturbNotificationStorage::loadNotifications()
//writes out empty .xml file (since LLCommunicationChannel::mHistory is empty) //writes out empty .xml file (since LLCommunicationChannel::mHistory is empty)
saveNotifications(); saveNotifications();
LL_INFOS("LLDoNotDisturbNotificationStorage") << "finished loading notifications" << LL_ENDL;
} }
void LLDoNotDisturbNotificationStorage::updateNotifications() void LLDoNotDisturbNotificationStorage::updateNotifications()
......
...@@ -105,6 +105,8 @@ bool LLNotificationStorage::writeNotifications(const LLSD& pNotificationData) co ...@@ -105,6 +105,8 @@ bool LLNotificationStorage::writeNotifications(const LLSD& pNotificationData) co
bool LLNotificationStorage::readNotifications(LLSD& pNotificationData) const bool LLNotificationStorage::readNotifications(LLSD& pNotificationData) const
{ {
LL_INFOS("LLNotificationStorage") << "starting read '" << mFileName << "'" << LL_ENDL;
bool didFileRead; bool didFileRead;
pNotificationData.clear(); pNotificationData.clear();
...@@ -126,6 +128,8 @@ bool LLNotificationStorage::readNotifications(LLSD& pNotificationData) const ...@@ -126,6 +128,8 @@ bool LLNotificationStorage::readNotifications(LLSD& pNotificationData) const
} }
} }
LL_INFOS("LLNotificationStorage") << "ending read '" << mFileName << "'" << LL_ENDL;
return didFileRead; return didFileRead;
} }
......
...@@ -87,6 +87,8 @@ void LLPersistentNotificationStorage::loadNotifications() ...@@ -87,6 +87,8 @@ void LLPersistentNotificationStorage::loadNotifications()
{ {
LLFastTimer _(FTM_LOAD_NOTIFICATIONS); LLFastTimer _(FTM_LOAD_NOTIFICATIONS);
LL_INFOS("LLPersistentNotificationStorage") << "start loading notifications" << LL_ENDL;
LLNotifications::instance().getChannel("Persistent")-> LLNotifications::instance().getChannel("Persistent")->
connectChanged(boost::bind(&LLPersistentNotificationStorage::onPersistentChannelChanged, this, _1)); connectChanged(boost::bind(&LLPersistentNotificationStorage::onPersistentChannelChanged, this, _1));
...@@ -129,6 +131,8 @@ void LLPersistentNotificationStorage::loadNotifications() ...@@ -129,6 +131,8 @@ void LLPersistentNotificationStorage::loadNotifications()
notification_channel->hideToast(notification->getID()); notification_channel->hideToast(notification->getID());
} }
} }
LL_INFOS("LLPersistentNotificationStorage") << "finished loading notifications" << LL_ENDL;
} }
bool LLPersistentNotificationStorage::onPersistentChannelChanged(const LLSD& payload) bool LLPersistentNotificationStorage::onPersistentChannelChanged(const LLSD& payload)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment