Commit 5b6b29da authored by zhijie.xue's avatar zhijie.xue

增加sentry过滤;去掉思坦途项目相关

parent 724b31bb
...@@ -63,19 +63,7 @@ def _replayHanlder(rule, to, matched): ...@@ -63,19 +63,7 @@ def _replayHanlder(rule, to, matched):
return to; return to;
# 替换文件中的内容 # 替换文件中的内容
if project == 'recruiting-management' or project == 'recruiting-ui': for file in files:
for file in files:
logger.info('开始替换文件:' + str(file))
for line in fileinput.input(file, inplace = 1):
p = re.compile(r'' + 'api.stantoo.com')
to = 'recruitapi-' + namespace + '.liangkebang.net'
_handler1 = partial(_replayHanlder, 'api.stantoo.com', to)
line = re.sub(p, _handler1, line)
print(line, end = '')
fileinput.close()
else:
for file in files:
logger.info('开始替换文件:' + str(file)) logger.info('开始替换文件:' + str(file))
for line in fileinput.input(file, inplace = 1): for line in fileinput.input(file, inplace = 1):
for item in config: for item in config:
......
...@@ -70,6 +70,13 @@ redashRule: &redashRule ...@@ -70,6 +70,13 @@ redashRule: &redashRule
to: 'redash.q-gp.com' to: 'redash.q-gp.com'
order: 9 order: 9
# sentry
sentryRule: &sentryRule
<<: *rule
reg: 'sentry[-/0-9a-z.]*liangkebang.net'
to: 'sentry.q-gp.com'
order: 10
# 神测测试环境 # 神测测试环境
bnDefaultRule: &bnDefaultRule bnDefaultRule: &bnDefaultRule
<<: *rule <<: *rule
...@@ -87,3 +94,4 @@ common: &common ...@@ -87,3 +94,4 @@ common: &common
bnRule: *bnRule bnRule: *bnRule
bnDefaultRule: *bnDefaultRule bnDefaultRule: *bnDefaultRule
redashRule: *redashRule redashRule: *redashRule
sentryRule: *sentryRule
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment