initial commit
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
import requests
|
||||
from flask import current_app
|
||||
|
||||
def get_headers():
|
||||
return {
|
||||
"Authorization": f"Bearer {current_app.config['JWT_SECRET_KEY']}",
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import logging
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format="%(asctime)s - %(levelname)s - %(message)s",
|
||||
handlers=[
|
||||
# logging.StreamHandler(), # Log to console
|
||||
logging.FileHandler("app.log", mode='a') # Log to file
|
||||
]
|
||||
)
|
||||
|
||||
logger = logging.getLogger("DetectionService")
|
||||
Reference in New Issue
Block a user