Skip to content

v0.2.54..v0.2.55 changeset ConvertCmd.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/ConvertCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/ConvertCmd.cpp
index 219e0f1..cc88a84 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/ConvertCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/ConvertCmd.cpp
@@ -59,6 +59,9 @@ public:
 
   virtual int runSimple(QStringList& args) override
   {
+    QElapsedTimer timer;
+    timer.start();
+
     LOG_VART(args.size());
     LOG_VART(args);
 
@@ -70,9 +73,6 @@ public:
       throw HootException(QString("%1 takes at least two parameters.").arg(getName()));
     }
 
-    QElapsedTimer timer;
-    timer.start();
-
     QStringList inputs;
     QString output;
     int argIndex = 0;
@@ -109,8 +109,8 @@ public:
     converter.setConfiguration(conf());
     converter.convert(inputs, output);
 
-    LOG_INFO(
-      "Convert operation completed in " << StringUtils::millisecondsToDhms(timer.elapsed()) << ".");
+    LOG_STATUS(
+      "Data conversion completed in " << StringUtils::millisecondsToDhms(timer.elapsed()) << ".");
 
     return 0;
   }
Clone this wiki locally