作者 陈志颖

chore:更新日志prefix

@@ -66,6 +66,8 @@ spec: @@ -66,6 +66,8 @@ spec:
66 value: "31543" 66 value: "31543"
67 - name: LOG_LEVEL 67 - name: LOG_LEVEL
68 value: "debug" 68 value: "debug"
  69 + - name: LOG_PREFIX
  70 + value: "[partner_dev]"
69 - name: ERROR_BASE_CODE 71 - name: ERROR_BASE_CODE
70 value: "1" 72 value: "1"
71 - name: ERROR_BASE_CODE_MULTIPLE 73 - name: ERROR_BASE_CODE_MULTIPLE
@@ -66,6 +66,8 @@ spec: @@ -66,6 +66,8 @@ spec:
66 value: "15432" 66 value: "15432"
67 - name: LOG_LEVEL 67 - name: LOG_LEVEL
68 value: "debug" 68 value: "debug"
  69 + - name: LOG_PREFIX
  70 + value: "[partner_prd]"
69 - name: ERROR_BASE_CODE 71 - name: ERROR_BASE_CODE
70 value: "1" 72 value: "1"
71 - name: ERROR_BASE_CODE_MULTIPLE 73 - name: ERROR_BASE_CODE_MULTIPLE
@@ -66,6 +66,8 @@ spec: @@ -66,6 +66,8 @@ spec:
66 value: "31543" 66 value: "31543"
67 - name: LOG_LEVEL 67 - name: LOG_LEVEL
68 value: "debug" 68 value: "debug"
  69 + - name: LOG_PREFIX
  70 + value: "[partner_test]"
69 - name: ERROR_BASE_CODE 71 - name: ERROR_BASE_CODE
70 value: "1" 72 value: "1"
71 - name: ERROR_BASE_CODE_MULTIPLE 73 - name: ERROR_BASE_CODE_MULTIPLE
@@ -9,6 +9,7 @@ const SERVICE_NAME = "partner" @@ -9,6 +9,7 @@ const SERVICE_NAME = "partner"
9 9
10 var LOG_LEVEL = "debug" 10 var LOG_LEVEL = "debug"
11 var LOG_File = "app.log" 11 var LOG_File = "app.log"
  12 +var LOG_PREFIX = "[partner_dev]"
12 13
13 var MMM_SMS_SERVICE_HOST = "https://sms.fjmaimaimai.com:9897" 14 var MMM_SMS_SERVICE_HOST = "https://sms.fjmaimaimai.com:9897"
14 var UCENTER_SERVICE_HOST = "https://suplus-ucenter-test.fjmaimaimai.com" 15 var UCENTER_SERVICE_HOST = "https://suplus-ucenter-test.fjmaimaimai.com"
@@ -28,6 +29,9 @@ func init() { @@ -28,6 +29,9 @@ func init() {
28 if os.Getenv("LOG_LEVEL") != "" { 29 if os.Getenv("LOG_LEVEL") != "" {
29 LOG_LEVEL = os.Getenv("LOG_LEVEL") 30 LOG_LEVEL = os.Getenv("LOG_LEVEL")
30 } 31 }
  32 + if os.Getenv("LOG_PREFIX") != "" {
  33 + LOG_PREFIX = os.Getenv("LOG_PREFIX")
  34 + }
31 if os.Getenv("UCENTER_SERVICE_HOST") != "" { 35 if os.Getenv("UCENTER_SERVICE_HOST") != "" {
32 UCENTER_SERVICE_HOST = os.Getenv("UCENTER_SERVICE_HOST") 36 UCENTER_SERVICE_HOST = os.Getenv("UCENTER_SERVICE_HOST")
33 } 37 }