Set log level via env var
This commit is contained in:
parent
b0b552ee82
commit
d770c7df41
1 changed files with 1 additions and 0 deletions
1
app.py
1
app.py
|
@ -26,6 +26,7 @@ logging.basicConfig(
|
|||
)
|
||||
logging.getLogger("urllib3.connectionpool").setLevel(logging.ERROR)
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.setLevel(os.environ.get('NICONICOGAY_LOG', 'INFO').upper())
|
||||
app = Flask(__name__)
|
||||
|
||||
HOST = os.environ.get('NICONICOGAY_HOST', 'https://nicovideo.gay')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue