@@ -36,7 +36,7 @@ func Configure(api *operations.ClaAPI, service IService, usersService users.Serv
3636 companiesModel , err := service .GetCompanies (ctx )
3737 if err != nil {
3838 msg := fmt .Sprintf ("EasyCLA - 400 Bad Request - unable to query all companies, error: %v" , err )
39- log .Warnf (msg )
39+ log .Warnf ("%s" , msg )
4040 return company .NewGetCompaniesBadRequest ().WithXRequestID (reqID ).WithPayload (& models.ErrorResponse {
4141 Code : "400" ,
4242 Message : msg ,
@@ -52,7 +52,7 @@ func Configure(api *operations.ClaAPI, service IService, usersService users.Serv
5252 companyModel , err := service .GetCompany (ctx , params .CompanyID )
5353 if err != nil {
5454 msg := fmt .Sprintf ("EasyCLA - 400 Bad Request - unable to query company by ID: %s, error: %v" , params .CompanyID , err )
55- log .Warnf (msg )
55+ log .Warnf ("%s" , msg )
5656 return company .NewGetCompanyBadRequest ().WithXRequestID (reqID ).WithPayload (& models.ErrorResponse {
5757 Code : "400" ,
5858 Message : msg ,
@@ -87,7 +87,7 @@ func Configure(api *operations.ClaAPI, service IService, usersService users.Serv
8787 companyModel , err := service .GetCompanyByExternalID (ctx , params .CompanySFID )
8888 if err != nil {
8989 msg := fmt .Sprintf ("EasyCLA - 400 Bad Request - unable to get associated salesforce Organization: %s using SFID: %s, error: %v" , org .Name , params .CompanySFID , err )
90- log .Warnf (msg )
90+ log .Warnf ("%s" , msg )
9191 return company .NewGetCompanyByExternalIDBadRequest ().WithXRequestID (reqID ).WithPayload (& models.ErrorResponse {
9292 Code : "400" ,
9393 Message : msg ,
@@ -108,7 +108,7 @@ func Configure(api *operations.ClaAPI, service IService, usersService users.Serv
108108 companyModel , err := service .GetCompanyBySigningEntityName (ctx , params .Name , params .CompanySFID )
109109 if err != nil {
110110 msg := fmt .Sprintf ("EasyCLA - 400 Bad Request - Unable to locate Company with Signing Entity Request of %s" , params .Name )
111- log .Warnf (msg )
111+ log .Warnf ("%s" , msg )
112112 return company .NewGetCompanyBySigningEntityNameBadRequest ().WithPayload (& models.ErrorResponse {
113113 Code : "400" ,
114114 Message : msg ,
@@ -134,7 +134,7 @@ func Configure(api *operations.ClaAPI, service IService, usersService users.Serv
134134 companiesModel , err := service .SearchCompanyByName (ctx , params .CompanyName , nextKey )
135135 if err != nil {
136136 msg := fmt .Sprintf ("EasyCLA - 400 Bad Request - unable to query company by name: %s, error: %v" , params .CompanyName , err )
137- log .Warnf (msg )
137+ log .Warnf ("%s" , msg )
138138 return company .NewSearchCompanyBadRequest ().WithXRequestID (reqID ).WithPayload (& models.ErrorResponse {
139139 Code : "400" ,
140140 Message : msg ,
@@ -173,7 +173,7 @@ func Configure(api *operations.ClaAPI, service IService, usersService users.Serv
173173 companies , err := service .GetCompaniesByUserManager (ctx , params .UserID )
174174 if err != nil {
175175 msg := fmt .Sprintf ("EasyCLA - 400 Bad Request - unable to query companies by user manager id: %s, error: %v" , params .UserID , err )
176- log .Warnf (msg )
176+ log .Warnf ("%s" , msg )
177177 return company .NewGetCompaniesByUserManagerBadRequest ().WithXRequestID (reqID ).WithPayload (& models.ErrorResponse {
178178 Code : "400" ,
179179 Message : msg ,
@@ -207,7 +207,7 @@ func Configure(api *operations.ClaAPI, service IService, usersService users.Serv
207207 companies , err := service .GetCompaniesByUserManagerWithInvites (ctx , params .UserID )
208208 if err != nil {
209209 msg := fmt .Sprintf ("EasyCLA - 400 Bad Request - unable to query companies by user manager id: %s, error: %v" , params .UserID , err )
210- log .Warnf (msg )
210+ log .Warnf ("%s" , msg )
211211 return company .NewGetCompaniesByUserManagerWithInvitesBadRequest ().WithXRequestID (reqID ).WithPayload (& models.ErrorResponse {
212212 Code : "400" ,
213213 Message : msg ,
0 commit comments