[Libreoffice-commits] online.git: wsd/LOOLWSD.cpp
Michael Meeks (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 3 16:59:40 UTC 2020
wsd/LOOLWSD.cpp | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
New commits:
commit affa943e4b3d508ca9feba32481e4b418dcf19d9
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Wed Jun 3 17:13:40 2020 +0100
Commit: Michael Meeks <michael.meeks at collabora.com>
CommitDate: Wed Jun 3 18:59:20 2020 +0200
dumpState should dump much more loolwsd state.
Change-Id: I0e59d56b2b735aea013a59850ff3f37fd72bc8b9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95447
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp
index c672932f0..39365cbe7 100644
--- a/wsd/LOOLWSD.cpp
+++ b/wsd/LOOLWSD.cpp
@@ -734,6 +734,8 @@ std::string LOOLWSD::OverrideWatermark;
std::set<const Poco::Util::AbstractConfiguration*> LOOLWSD::PluginConfigurations;
std::chrono::time_point<std::chrono::system_clock> LOOLWSD::StartTime;
+// If you add global state please update dumpState below too
+
static std::string UnitTestLibrary;
unsigned int LOOLWSD::NumPreSpawnedChildren = 0;
@@ -3402,12 +3404,37 @@ public:
<< "\n SSL-Termination: " << (LOOLWSD::isSSLTermination() ? "yes" : "no")
<< "\n Security " << (LOOLWSD::NoCapsForKit ? "no" : "") << " chroot, "
<< (LOOLWSD::NoSeccomp ? "no" : "") << " api lockdown"
+ << "\n Admin: " << (LOOLWSD::AdminEnabled ? "enabled" : "disabled")
#endif
<< "\n TerminationFlag: " << SigUtil::getTerminationFlag()
<< "\n isShuttingDown: " << SigUtil::getShutdownRequestFlag()
<< "\n NewChildren: " << NewChildren.size()
<< "\n OutstandingForks: " << OutstandingForks
- << "\n NumPreSpawnedChildren: " << LOOLWSD::NumPreSpawnedChildren;
+ << "\n NumPreSpawnedChildren: " << LOOLWSD::NumPreSpawnedChildren
+ << "\n ChildSpawnTimeoutMs: " << ChildSpawnTimeoutMs
+ << "\n Document Brokers: " << DocBrokers.size()
+#if !MOBILEAPP
+ << "\n of which ConvertTo: " << ConvertToBroker::getInstanceCount()
+#endif
+ << "\n vs. MaxDocuments: " << LOOLWSD::MaxDocuments
+ << "\n NumConnections: " << LOOLWSD::NumConnections
+ << "\n vs. MaxConnections: " << LOOLWSD::MaxConnections
+ << "\n SysTemplate: " << LOOLWSD::SysTemplate
+ << "\n LoTemplate: " << LOOLWSD::LoTemplate
+ << "\n ChildRoot: " << LOOLWSD::ChildRoot
+ << "\n FileServerRoot: " << LOOLWSD::FileServerRoot
+ << "\n WelcomeFilesRoot: " << LOOLWSD::WelcomeFilesRoot
+ << "\n ServiceRoot: " << LOOLWSD::ServiceRoot
+ << "\n LOKitVersion: " << LOOLWSD::LOKitVersion
+ << "\n HostIdentifier: " << LOOLWSD::HostIdentifier
+ << "\n ConfigFile: " << LOOLWSD::ConfigFile
+ << "\n ConfigDir: " << LOOLWSD::ConfigDir
+ << "\n LogLevel: " << LOOLWSD::LogLevel
+ << "\n AnonymizeUserData: " << (LOOLWSD::AnonymizeUserData ? "yes" : "no")
+ << "\n CheckLoolUser: " << (LOOLWSD::CheckLoolUser ? "yes" : "no")
+ << "\n IsProxyPrefixEnabled: " << (LOOLWSD::IsProxyPrefixEnabled ? "yes" : "no")
+ << "\n OverrideWatermark: " << LOOLWSD::OverrideWatermark
+ ;
os << "\nServer poll:\n";
_acceptPoll.dumpState(os);
More information about the Libreoffice-commits
mailing list