Skip to content

Commit

Permalink
Merge pull request #41 from seowings/main
Browse files Browse the repository at this point in the history
Better Logging for Simply Static Post Processing #39 #18
  • Loading branch information
seowings authored Oct 6, 2023
2 parents fc0a36a + 1ae03c9 commit ad2c1e5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ss_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
# +++++++++++++++++++++++++++++++++++++++++++++++++++++

import os
import sys
from pathlib import Path
import logging

# +++++++++++++++++++++++++++++++++++++++++++++++++++++
# INTERNAL IMPORTS
Expand All @@ -38,6 +40,12 @@
from src.staticwordpress.core.constants import SOURCE, HOST

if __name__ == "__main__":
logging.basicConfig(
format="%(asctime)s - %(levelname)s - %(message)s",
level=logging.DEBUG,
stream=sys.stdout,
)

env_wp_user = os.environ.get("user")
env_wp_api_token = os.environ.get("token")
env_src_url = os.environ.get("src")
Expand Down Expand Up @@ -73,5 +81,5 @@
ss_zip_obj.setup_zip_folders()
ss_zip_obj.add_404_page()
ss_zip_obj.add_robots_txt()
# ss_zip_obj.add_redirects() # temporarily disabled redirects #39
ss_zip_obj.add_redirects()
ss_zip_obj.add_search()

0 comments on commit ad2c1e5

Please sign in to comment.