Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logging in magic methods #5795

Merged
merged 2 commits into from
Jun 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions readthedocs/doc_builder/backends/mkdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ def load_yaml_config(self):
return config

except IOError:
log.info(
'Creating default MkDocs config file for project: %s:%s',
self.project.slug,
self.version.slug,
)
return {
'site_name': self.version.project.name,
}
Expand Down
5 changes: 5 additions & 0 deletions readthedocs/doc_builder/backends/sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ def __init__(self, *args, **kwargs):

def _write_config(self, master_doc='index'):
"""Create ``conf.py`` if it doesn't exist."""
log.info(
'Creating default Sphinx config file for project: %s:%s',
self.project.slug,
self.version.slug,
)
docs_dir = self.docs_dir()
conf_template = render_to_string(
'sphinx/conf.py.conf',
Expand Down