diff --git a/mdserver.py b/mdserver.py
index a1263aeb4b02b4d4816358eb208fe5de4a094158..8fed186a47775498f3bb039e0bd522bc79eab045 100755
--- a/mdserver.py
+++ b/mdserver.py
@@ -30,4 +30,5 @@ for domain, values in config.items():
     server.add_watch(domain, location)
 
 
-app.run(host='127.0.0.1', port=5001)
+if __name__ == "__main__":
+    app.run(host='127.0.0.1', port=5001, debug=False)
diff --git a/utils.py b/utils.py
index cd665143accdbc544b9eb6d8bd3531c8eb5f16d0..6fffdcdaeccbaf262a3bd04ac37a64111f07cd6b 100755
--- a/utils.py
+++ b/utils.py
@@ -49,7 +49,8 @@ class Resource:
                 self._read_metadata(mdfile)
 
     def _read_metadata(self, mdfile):
-        print("--- READ METADATA --")
+        print("\n--- READ METADATA --")
+        print(mdfile)
         found = 0
         removed = 0
         old_idps = self.mdfiles[mdfile].copy()
@@ -65,7 +66,7 @@ class Resource:
             for entity_descriptor in root.findall('md:EntityDescriptor', ns):
                 entityID = entity_descriptor.attrib.get('entityID', 'none')
                 sha1 = hasher(entityID)
-                print(f"{{sha1}}{sha1} {entityID}")
+                print(f"  {{sha1}}{sha1} {entityID}")
                 entity_descriptor.set('validUntil', validUntil)
                 entity_descriptor.set('cacheDuration', cacheDuration)
                 entity = Entity()