diff options
author | Juergen Funk <juergen.funk_ml@cib.de> | 2016-12-08 15:37:10 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-01-19 14:20:43 +0000 |
commit | fe9c6fa5a43177f4d77766f29d44784e17f53320 (patch) | |
tree | 800f48329597fd24b44a59a3dde329eaef845ec3 /framework | |
parent | b2c467e47f438b2011aa304cca9bf403eaa1c8e2 (diff) |
Expand and improve the output log in Session-Management
in dependency of tdf#104101
Change-Id: I799f81adf4e4751fb505c84aa075363acf70f5a7
Reviewed-on: https://gerrit.libreoffice.org/33034
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/services/sessionlistener.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/framework/source/services/sessionlistener.cxx b/framework/source/services/sessionlistener.cxx index d4a9d8099de2..8723177494c2 100644 --- a/framework/source/services/sessionlistener.cxx +++ b/framework/source/services/sessionlistener.cxx @@ -261,6 +261,8 @@ void SAL_CALL SessionListener::initialize(const Sequence< Any >& args) } } } + + SAL_INFO("fwk.session.debug", " m_bAllowUserInteractionOnQuit = " << (m_bAllowUserInteractionOnQuit ? "true" : "false")); if (!m_rSessionManager.is()) m_rSessionManager = css::uno::Reference< frame::XSessionManagerClient > (m_xContext->getServiceManager()->createInstanceWithContext(aSMgr, m_xContext), UNO_QUERY); @@ -275,6 +277,9 @@ void SAL_CALL SessionListener::statusChanged(const frame::FeatureStateEvent& eve throw (css::uno::RuntimeException, std::exception) { SAL_INFO("fwk.session", "SessionListener::statusChanged"); + + SAL_INFO("fwk.session.debug", " ev.Feature = " << event.FeatureURL.Complete << + ", ev.Descript = " << event.FeatureDescriptor); if ( event.FeatureURL.Complete == "vnd.sun.star.autorecovery:/doSessionRestore" ) { if (event.FeatureDescriptor == "update") @@ -320,6 +325,9 @@ void SAL_CALL SessionListener::doSave( sal_Bool bShutdown, sal_Bool /*bCancelabl throw (RuntimeException, std::exception) { SAL_INFO("fwk.session", "SessionListener::doSave"); + + SAL_INFO("fwk.session.debug", " m_bAllowUserInteractionOnQuit = " << (m_bAllowUserInteractionOnQuit ? "true" : "false") << + ", bShutdown = " << (bShutdown ? "true" : "false")); if (bShutdown) { m_bSessionStoreRequested = true; // there is no need to protect it with mutex @@ -354,12 +362,12 @@ void SAL_CALL SessionListener::approveInteraction( sal_Bool bInteractionGranted Desktop* pDesktop(dynamic_cast<Desktop*>(xDesktop.get())); if(pDesktop) { - SAL_INFO("fwk.session", "XDesktop is a framework::Desktop -- good."); + SAL_INFO("fwk.session", " XDesktop is a framework::Desktop -- good."); m_bTerminated = pDesktop->terminateQuickstarterToo(); } else { - SAL_WARN("fwk.session", "XDesktop is not a framework::Desktop -- this should never happen."); + SAL_WARN("fwk.session", " XDesktop is not a framework::Desktop -- this should never happen."); m_bTerminated = xDesktop->terminate(); } @@ -413,6 +421,8 @@ com_sun_star_comp_frame_SessionListener_get_implementation( css::uno::XComponentContext *context, css::uno::Sequence<css::uno::Any> const &) { + SAL_INFO("fwk.session", "com_sun_star_comp_frame_SessionListener_get_implementation"); + return cppu::acquire(new SessionListener(context)); } |