Picture using minio service

This commit is contained in:
zhouchengrong
2024-03-18 15:04:47 +08:00
parent 909a441a86
commit e61dc3d39d
4 changed files with 5 additions and 6 deletions

View File

@@ -1,8 +1,10 @@
import logging
import os import os
from dotenv import load_dotenv from dotenv import load_dotenv
from pydantic import BaseSettings from pydantic import BaseSettings
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../')) BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../'))
logging.info(f"BASE_DIR : {BASE_DIR}")
load_dotenv(os.path.join(BASE_DIR, '.env')) load_dotenv(os.path.join(BASE_DIR, '.env'))

View File

@@ -1,7 +1,4 @@
import io import io
import requests
from PIL import Image from PIL import Image
import cv2 import cv2
import numpy as np import numpy as np

View File

@@ -15,7 +15,7 @@ LOGGER_CONFIG_DICT = {
"class": "logging.handlers.RotatingFileHandler", "class": "logging.handlers.RotatingFileHandler",
"level": "INFO", "level": "INFO",
"formatter": "simple", "formatter": "simple",
"filename": "logs/info.log", "filename": "app/logs/info.log",
"maxBytes": 10485760, "maxBytes": 10485760,
"backupCount": 50, "backupCount": 50,
"encoding": "utf8", "encoding": "utf8",
@@ -24,7 +24,7 @@ LOGGER_CONFIG_DICT = {
"class": "logging.handlers.RotatingFileHandler", "class": "logging.handlers.RotatingFileHandler",
"level": "ERROR", "level": "ERROR",
"formatter": "simple", "formatter": "simple",
"filename": "logs/errors.log", "filename": "app/logs/errors.log",
"maxBytes": 10485760, "maxBytes": 10485760,
"backupCount": 20, "backupCount": 20,
"encoding": "utf8", "encoding": "utf8",
@@ -33,7 +33,7 @@ LOGGER_CONFIG_DICT = {
"class": "logging.handlers.RotatingFileHandler", "class": "logging.handlers.RotatingFileHandler",
"level": "DEBUG", "level": "DEBUG",
"formatter": "simple", "formatter": "simple",
"filename": "logs/debug.log", "filename": "app/logs/debug.log",
"maxBytes": 10485760, "maxBytes": 10485760,
"backupCount": 50, "backupCount": 50,
"encoding": "utf8", "encoding": "utf8",

Binary file not shown.