更新 chassis 2

This commit is contained in:
BryantHe 2023-05-30 04:57:13 +08:00
parent c5bf708190
commit bd0047b6a8
1 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,9 @@
import os
import logging
from logstash_formatter import LogstashFormatterV1
from statsd import StatsClient
from nameko_sentry import SentryReporter
from dotenv import load_dotenv
def init_statsd(prefix=None, host=None, port=8125):
@ -19,4 +21,8 @@ def init_logger():
def init_sentry():
return SentryReporter()
return SentryReporter()
def init_dotenv(env_file='.nameko.env'):
load_dotenv(os.path.join(os.getcwd(), env_file))