[Libreoffice-commits] online.git: loolwsd/LOOLWSD.cpp loolwsd/LOOLWSD.hpp loolwsd/TraceFile.hpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Mon Aug 8 03:49:12 UTC 2016


 loolwsd/LOOLWSD.cpp   |    4 ++--
 loolwsd/LOOLWSD.hpp   |    2 +-
 loolwsd/TraceFile.hpp |    6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit d1e66718b5f44ce608b33356d8c4a91062baa25e
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Sun Jul 31 13:56:57 2016 -0400

    loolstress: TraceFile -> TraceFileWriter
    
    Change-Id: Icf22189170cfb57f014346c91ba99a9cae5fe18a
    Reviewed-on: https://gerrit.libreoffice.org/27958
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index cb0cb19..c2df0b3 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -1265,7 +1265,7 @@ static std::string UnitTestLibrary;
 unsigned int LOOLWSD::NumPreSpawnedChildren = 0;
 std::atomic<unsigned> LOOLWSD::NumDocBrokers;
 std::atomic<unsigned> LOOLWSD::NumConnections;
-std::unique_ptr<TraceFile> LOOLWSD::TraceDumper;
+std::unique_ptr<TraceFileWriter> LOOLWSD::TraceDumper;
 
 class AppConfigMap : public Poco::Util::MapConfiguration
 {
@@ -1398,7 +1398,7 @@ void LOOLWSD::initialize(Application& self)
     if (getConfigValue<bool>(conf, "trace[@enable]", false))
     {
         const auto& path = getConfigValue<std::string>(conf, "trace.path", "");
-        TraceDumper.reset(new TraceFile(path));
+        TraceDumper.reset(new TraceFileWriter(path));
         Log::info("Command trace dumping enabled to file: " + path);
     }
 
diff --git a/loolwsd/LOOLWSD.hpp b/loolwsd/LOOLWSD.hpp
index 72f3ffe..5d14171 100644
--- a/loolwsd/LOOLWSD.hpp
+++ b/loolwsd/LOOLWSD.hpp
@@ -47,7 +47,7 @@ public:
     static std::string LOKitVersion;
     static std::atomic<unsigned> NumDocBrokers;
     static std::atomic<unsigned> NumConnections;
-    static std::unique_ptr<TraceFile> TraceDumper;
+    static std::unique_ptr<TraceFileWriter> TraceDumper;
 
     static
     std::string GenSessionId()
diff --git a/loolwsd/TraceFile.hpp b/loolwsd/TraceFile.hpp
index 476b409..8c61d1f 100644
--- a/loolwsd/TraceFile.hpp
+++ b/loolwsd/TraceFile.hpp
@@ -11,16 +11,16 @@
 #include <fstream>
 
 /// Dumps commands and notification trace.
-class TraceFile
+class TraceFileWriter
 {
 public:
-    TraceFile(const std::string& path) :
+    TraceFileWriter(const std::string& path) :
         _epochStart(Poco::Timestamp().epochMicroseconds()),
         _stream(path, std::ios::out)
     {
     }
 
-    ~TraceFile()
+    ~TraceFileWriter()
     {
         _stream.close();
     }


More information about the Libreoffice-commits mailing list