Skip to content

Commit 56b1915

Browse files
committed
Add logging in magic methods
Before removing this, we want to collect some info to communicate this change to users. Related #5609
1 parent 8258a3c commit 56b1915

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

readthedocs/doc_builder/backends/mkdocs.py

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

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

readthedocs/doc_builder/backends/sphinx.py

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ 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',
65+
self.project.slug,
66+
)
6367
docs_dir = self.docs_dir()
6468
conf_template = render_to_string(
6569
'sphinx/conf.py.conf',

0 commit comments

Comments
 (0)