作者 陈志颖

chore:更新日志prefix

... ... @@ -66,6 +66,8 @@ spec:
value: "31543"
- name: LOG_LEVEL
value: "debug"
- name: LOG_PREFIX
value: "[partner_dev]"
- name: ERROR_BASE_CODE
value: "1"
- name: ERROR_BASE_CODE_MULTIPLE
... ...
... ... @@ -66,6 +66,8 @@ spec:
value: "15432"
- name: LOG_LEVEL
value: "debug"
- name: LOG_PREFIX
value: "[partner_prd]"
- name: ERROR_BASE_CODE
value: "1"
- name: ERROR_BASE_CODE_MULTIPLE
... ...
... ... @@ -66,6 +66,8 @@ spec:
value: "31543"
- name: LOG_LEVEL
value: "debug"
- name: LOG_PREFIX
value: "[partner_test]"
- name: ERROR_BASE_CODE
value: "1"
- name: ERROR_BASE_CODE_MULTIPLE
... ...
... ... @@ -9,6 +9,7 @@ const SERVICE_NAME = "partner"
var LOG_LEVEL = "debug"
var LOG_File = "app.log"
var LOG_PREFIX = "[partner_dev]"
var MMM_SMS_SERVICE_HOST = "https://sms.fjmaimaimai.com:9897"
var UCENTER_SERVICE_HOST = "https://suplus-ucenter-test.fjmaimaimai.com"
... ... @@ -28,6 +29,9 @@ func init() {
if os.Getenv("LOG_LEVEL") != "" {
LOG_LEVEL = os.Getenv("LOG_LEVEL")
}
if os.Getenv("LOG_PREFIX") != "" {
LOG_PREFIX = os.Getenv("LOG_PREFIX")
}
if os.Getenv("UCENTER_SERVICE_HOST") != "" {
UCENTER_SERVICE_HOST = os.Getenv("UCENTER_SERVICE_HOST")
}
... ...