Remove debug logs on setting up related resources
This commit is contained in:
parent
60654579ae
commit
3faf29d761
2 changed files with 7 additions and 8 deletions
|
|
@ -63,10 +63,10 @@ func CommunicationRelatedRecords(ctx context.Context, user User, comm *modelpubl
|
|||
if err != nil {
|
||||
return result, fmt.Errorf("email log from ID: %w", err)
|
||||
}
|
||||
for _, log := range email_logs {
|
||||
for _, l := range email_logs {
|
||||
result = append(result, RelatedRecord{
|
||||
Created: log.Created,
|
||||
ID: strconv.Itoa(int(log.ID)),
|
||||
Created: l.Created,
|
||||
ID: strconv.Itoa(int(l.ID)),
|
||||
Type: RelatedRecordTypeEmail,
|
||||
})
|
||||
}
|
||||
|
|
@ -79,10 +79,10 @@ func CommunicationRelatedRecords(ctx context.Context, user User, comm *modelpubl
|
|||
if err != nil {
|
||||
return result, fmt.Errorf("text log from ID: %w", err)
|
||||
}
|
||||
for _, log := range text_logs {
|
||||
for _, l := range text_logs {
|
||||
result = append(result, RelatedRecord{
|
||||
Created: log.Created,
|
||||
ID: strconv.Itoa(int(log.ID)),
|
||||
Created: l.Created,
|
||||
ID: strconv.Itoa(int(l.ID)),
|
||||
Type: RelatedRecordTypeText,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
modelpublicreport "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/model"
|
||||
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
|
||||
"github.com/Gleipnir-Technology/nidus-sync/platform"
|
||||
"github.com/rs/zerolog/log"
|
||||
//"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
type communicationR struct {
|
||||
|
|
@ -195,7 +195,6 @@ func (res *communicationR) hydrateCommunication(comm modelpublic.Communication,
|
|||
Type: r_type,
|
||||
URI: uri,
|
||||
}
|
||||
log.Debug().Str("created", rr.Created.String()).Str("id", rr.ID).Str("uri", uri).Msg("related record")
|
||||
}
|
||||
response, err := responseURI(*res.router, comm)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue