mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-19 01:24:09 +02:00
Improve logging for gendoc
This commit is contained in:
parent
0dfff6b190
commit
544bd0a5d2
|
|
@ -550,8 +550,8 @@ class MatrixUnits(Units):
|
||||||
for filename in os.listdir(path):
|
for filename in os.listdir(path):
|
||||||
if not filename.endswith(".yaml"):
|
if not filename.endswith(".yaml"):
|
||||||
continue
|
continue
|
||||||
logger.info("Reading swagger API: %s" % filename)
|
|
||||||
filepath = os.path.join(path, filename)
|
filepath = os.path.join(path, filename)
|
||||||
|
logger.info("Reading swagger API: %s" % filepath)
|
||||||
with open(filepath, "r") as f:
|
with open(filepath, "r") as f:
|
||||||
# strip .yaml
|
# strip .yaml
|
||||||
group_name = filename[:-5].replace("-", "_")
|
group_name = filename[:-5].replace("-", "_")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue