更新 chassis 3
This commit is contained in:
parent
bd0047b6a8
commit
52733acf61
|
@ -1,9 +1,7 @@
|
||||||
import os
|
|
||||||
import logging
|
import logging
|
||||||
from logstash_formatter import LogstashFormatterV1
|
from logstash_formatter import LogstashFormatterV1
|
||||||
from statsd import StatsClient
|
from statsd import StatsClient
|
||||||
from nameko_sentry import SentryReporter
|
from nameko_sentry import SentryReporter
|
||||||
from dotenv import load_dotenv
|
|
||||||
|
|
||||||
|
|
||||||
def init_statsd(prefix=None, host=None, port=8125):
|
def init_statsd(prefix=None, host=None, port=8125):
|
||||||
|
@ -22,7 +20,3 @@ def init_logger():
|
||||||
|
|
||||||
def init_sentry():
|
def init_sentry():
|
||||||
return SentryReporter()
|
return SentryReporter()
|
||||||
|
|
||||||
|
|
||||||
def init_dotenv(env_file='.nameko.env'):
|
|
||||||
load_dotenv(os.path.join(os.getcwd(), env_file))
|
|
Loading…
Reference in New Issue