This commit is contained in:
Cal Corum 2023-02-21 15:22:11 -06:00
commit a080ba4d9b
3 changed files with 64 additions and 1 deletions

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
.gitignore
Lib
Scripts
pyvenv.cfg
database_migration.py
Include
resources

56
.gitignore vendored Normal file
View File

@ -0,0 +1,56 @@
# These are some examples of commonly ignored file patterns.
# You should customize this list as applicable to your project.
# Learn more about .gitignore:
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
# Node artifact files
node_modules/
dist/
# Compiled Java class files
*.class
# Compiled Python bytecode
*.py[cod]
# Log files
*.log
# Package files
*.jar
# Maven
target/
dist/
# JetBrains IDE
.idea/
# Unit test reports
TEST*.xml
# Generated by MacOS
.DS_Store
# Generated by Windows
Thumbs.db
# Applications
*.app
*.exe
*.war
# Large media files
*.mp4
*.tiff
*.avi
*.flv
*.mov
*.wmv
# Project Specific
Lib/
Scripts/
Include/
pyvenv.cfg

View File

@ -17,7 +17,7 @@ from pandas import DataFrame
date = f'{datetime.datetime.now().year}-{datetime.datetime.now().month}-{datetime.datetime.now().day}' date = f'{datetime.datetime.now().year}-{datetime.datetime.now().month}-{datetime.datetime.now().day}'
log_level = logging.INFO if os.environ.get('LOG_LEVEL') == 'INFO' else 'WARN' log_level = logging.INFO if os.environ.get('LOG_LEVEL') == 'INFO' else 'WARN'
logging.basicConfig( logging.basicConfig(
filename=f'logs/{date}.log', filename=f'logs/database/{date}.log',
format='%(asctime)s - database - %(levelname)s - %(message)s', format='%(asctime)s - database - %(levelname)s - %(message)s',
level=log_level level=log_level
) )