@@ -33,7 +33,7 @@ func (u unexpectedControllerStatusCode) Error() string {
3333}
3434
3535func controllerURLStr (conf * Config , additionalPath ... string ) string {
36- return fmt .Sprintf ("http://%s:%s/%s" , conf .WorkflowHost , conf .WorkflowPort , strings .Join (additionalPath , "/" ))
36+ return fmt .Sprintf ("http://%s:%s/%s" , conf .ControllerHost , conf .ControllerPort , strings .Join (additionalPath , "/" ))
3737}
3838
3939func setReqHeaders (builderKey string , req * http.Request ) {
@@ -61,7 +61,7 @@ func getAppConfig(conf *Config, builderKey, userName, appName string) (*pkg.Conf
6161
6262 setReqHeaders (builderKey , req )
6363
64- log .Debug ("Workflow request POST /v2/hooks/config\n %s" , string (data ))
64+ log .Debug ("Controller request POST /v2/hooks/config\n %s" , string (data ))
6565 res , err := http .DefaultClient .Do (req )
6666 if err != nil {
6767 return nil , err
@@ -91,7 +91,7 @@ func publishRelease(conf *Config, builderKey string, buildHook *pkg.BuildHook) (
9191 }
9292
9393 url := controllerURLStr (conf , "v2" , "hooks" , "build" )
94- log .Debug ("Workflow request POST /v2/hooks/build\n %s" , postBody )
94+ log .Debug ("Controller request POST /v2/hooks/build\n %s" , postBody )
9595 req , err := http .NewRequest ("POST" , url , strings .NewReader (postBody ))
9696 if err != nil {
9797 return nil , err
@@ -132,7 +132,7 @@ func receive(conf *Config, builderKey, gitSha string) error {
132132 return err
133133 }
134134
135- log .Debug ("Workflow request /v2/hooks/push (body elided)" )
135+ log .Debug ("Controller request /v2/hooks/push (body elided)" )
136136 req , err := http .NewRequest ("POST" , urlStr , & body )
137137 if err != nil {
138138 return err
0 commit comments