feat: switch from _all_ to _default_ for process type
This is a special process type that signifies it's the default value for everything.
This commit is contained in:
1 parent
3ab271f756
commit
278a80cc25
1 file changed
+4
-4
@@ -57,7 +57,7 @@ func clearByRequestType(appName string, processType string, requestType string)
|
|||||||
humanAppName = "default"
|
humanAppName = "default"
|
||||||
}
|
}
|
||||||
message := fmt.Sprintf("clearing %v %v", humanAppName, noun)
|
message := fmt.Sprintf("clearing %v %v", humanAppName, noun)
|
||||||
if processType != "_all_" {
|
if processType != "_default_" {
|
||||||
message = fmt.Sprintf("%v (%v)", message, processType)
|
message = fmt.Sprintf("%v (%v)", message, processType)
|
||||||
}
|
}
|
||||||
common.LogInfo2Quiet(message)
|
common.LogInfo2Quiet(message)
|
||||||
@@ -83,7 +83,7 @@ func clearByRequestType(appName string, processType string, requestType string)
|
|||||||
|
|
||||||
func setRequestType(appName string, processType string, r Resource, requestType string) error {
|
func setRequestType(appName string, processType string, r Resource, requestType string) error {
|
||||||
if len(processType) == 0 {
|
if len(processType) == 0 {
|
||||||
processType = "_all_"
|
processType = "_default_"
|
||||||
}
|
}
|
||||||
|
|
||||||
resources := map[string]string{
|
resources := map[string]string{
|
||||||
@@ -116,7 +116,7 @@ func setRequestType(appName string, processType string, r Resource, requestType
|
|||||||
message = fmt.Sprintf("Setting default resource %v", noun)
|
message = fmt.Sprintf("Setting default resource %v", noun)
|
||||||
}
|
}
|
||||||
|
|
||||||
if processType != "_all_" {
|
if processType != "_default_" {
|
||||||
message = fmt.Sprintf("%v (%v)", message, processType)
|
message = fmt.Sprintf("%v (%v)", message, processType)
|
||||||
}
|
}
|
||||||
common.LogInfo2Quiet(message)
|
common.LogInfo2Quiet(message)
|
||||||
@@ -147,7 +147,7 @@ func reportRequestType(appName string, processType string, requestType string) {
|
|||||||
humanAppName = "default"
|
humanAppName = "default"
|
||||||
}
|
}
|
||||||
message := fmt.Sprintf("resource %v %v information", noun, humanAppName)
|
message := fmt.Sprintf("resource %v %v information", noun, humanAppName)
|
||||||
if processType != "_all_" {
|
if processType != "_default_" {
|
||||||
message = fmt.Sprintf("%v (%v)", message, processType)
|
message = fmt.Sprintf("%v (%v)", message, processType)
|
||||||
}
|
}
|
||||||
common.LogInfo2Quiet(message)
|
common.LogInfo2Quiet(message)
|
||||||
|
|||||||
Reference in new issue
Block a user