From 52733acf61a3c476c5a232971530c1f43ccaf6d9 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Tue, 30 May 2023 05:06:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20chassis=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chassis/chassis.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/chassis/chassis.py b/chassis/chassis.py index afdeae8..c80155d 100644 --- a/chassis/chassis.py +++ b/chassis/chassis.py @@ -1,9 +1,7 @@ -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): @@ -21,8 +19,4 @@ def init_logger(): def init_sentry(): - return SentryReporter() - - -def init_dotenv(env_file='.nameko.env'): - load_dotenv(os.path.join(os.getcwd(), env_file)) \ No newline at end of file + return SentryReporter() \ No newline at end of file