Skip to content
Snippets Groups Projects
Verified Commit 91368c53 authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

fix error

parent c49afbac
No related branches found
No related tags found
No related merge requests found
Pipeline #323250 passed
......@@ -106,16 +106,16 @@ func profilesBindingData() map[string]interface{} {
for _, group := range groups {
profilesForGroup, err := dbFunc(log.StandardLogger(), nil, group)
if err != nil {
log.WithError(err).Error(
"error while retrieving profiles of type '%s' for webinterface binding data", pt,
log.WithError(err).WithField("profile type", pt).Error(
"error while retrieving profiles for webinterface binding data",
)
}
for _, d := range profilesForGroup {
payload, err := d.Payload.MarshalJSON()
if err != nil {
log.WithError(err).Error(
"error while marshaling payload while retrieving profiles of type '%s' for webinterface"+
" binding data", pt,
log.WithError(err).WithField("profile type", pt).Error(
"error while marshaling payload while retrieving profiles for webinterface" +
" binding data",
)
}
p = append(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment