Skip to content

Commit

Permalink
fix(logging): print to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
timmeinerzhagen authored Dec 16, 2022
1 parent 9d0d32c commit f2eaaa8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mkdocs_meta_manager_plugin/plugin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import re
import yaml
from pathlib import Path
import logging

from mkdocs.config import config_options
from mkdocs.plugins import BasePlugin
Expand Down Expand Up @@ -28,7 +29,7 @@ def on_pre_build(self, config):
self.meta_files[raw_path] = yaml.safe_load(stream)
except yaml.YAMLError as exc:
print(exc)
print(self.meta_files)
logging.debug(self.meta_files)


def on_page_markdown(self, markdown, page, config, files):
Expand All @@ -43,5 +44,5 @@ def on_page_markdown(self, markdown, page, config, files):
if not key in page.meta:
page.meta[key] = value

print(page.meta)
logging.debug("%s: %s", page.file.src_path, page.meta)
return markdown

0 comments on commit f2eaaa8

Please sign in to comment.