Skip to content

Commit 0496f9a

Browse files
authored
Merge pull request #5795 from stsewd/add-logging-for-magic-methods
Add logging in magic methods
2 parents de0e916 + 567a1a1 commit 0496f9a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

readthedocs/doc_builder/backends/mkdocs.py

+5
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ def load_yaml_config(self):
9797
return config
9898

9999
except IOError:
100+
log.info(
101+
'Creating default MkDocs config file for project: %s:%s',
102+
self.project.slug,
103+
self.version.slug,
104+
)
100105
return {
101106
'site_name': self.version.project.name,
102107
}

readthedocs/doc_builder/backends/sphinx.py

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ def __init__(self, *args, **kwargs):
6060

6161
def _write_config(self, master_doc='index'):
6262
"""Create ``conf.py`` if it doesn't exist."""
63+
log.info(
64+
'Creating default Sphinx config file for project: %s:%s',
65+
self.project.slug,
66+
self.version.slug,
67+
)
6368
docs_dir = self.docs_dir()
6469
conf_template = render_to_string(
6570
'sphinx/conf.py.conf',

0 commit comments

Comments
 (0)