From c806c31931153952d5bb3d0d961d4d85eebe5468 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr>
Date: Mon, 6 May 2019 13:26:10 +0200
Subject: [PATCH] STY: create application without logger in rst generation to
 avoid spam during compilation

---
 Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py b/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py
index 644f9a78c5..ffe82d61b5 100755
--- a/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py
+++ b/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py
@@ -365,7 +365,7 @@ def render_deprecation_string(app):
 def render_application(appname, allapps):
     "Render app to rst"
 
-    app = otbApplication.Registry.CreateApplication(appname)
+    app = otbApplication.Registry.CreateApplicationWithoutLogger(appname)
 
     # TODO: remove this when bug 440 is fixed
     app.Init()
@@ -388,7 +388,7 @@ def render_application(appname, allapps):
     return output
 
 def GetApplicationTags(appname):
-     app = otbApplication.Registry.CreateApplication(appname)
+     app = otbApplication.Registry.CreateApplicationWithoutLogger(appname)
      return app.GetDocTags()
 
 def GenerateRstForApplications(rst_dir):
-- 
GitLab