aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-24 20:27:09 +0200
committerMax Magorsch <arzano@gentoo.org>2020-06-24 20:27:09 +0200
commit49d023e7bdc22df3ea91adb2a5c47c6e36ae0578 (patch)
tree36e79a0fe4cb952749e451db2832e568f48cd524 /pkg/app/message
parentFix getAllMessagesCount to use message_id_field (diff)
downloadarchives-49d023e7bdc22df3ea91adb2a5c47c6e36ae0578.tar.gz
archives-49d023e7bdc22df3ea91adb2a5c47c6e36ae0578.tar.bz2
archives-49d023e7bdc22df3ea91adb2a5c47c6e36ae0578.zip
Remove verbose logging messages
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'pkg/app/message')
-rw-r--r--pkg/app/message/show.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/pkg/app/message/show.go b/pkg/app/message/show.go
index 7ceb84c..e8eb456 100644
--- a/pkg/app/message/show.go
+++ b/pkg/app/message/show.go
@@ -5,7 +5,6 @@ package message
import (
"archives/pkg/database"
"archives/pkg/models"
- "fmt"
"net/http"
"strings"
)
@@ -32,7 +31,6 @@ func Show(w http.ResponseWriter, r *http.Request) {
var queryParts []string
for _, reference := range message.References {
- fmt.Println("> " + reference.Id)
queryParts = append(queryParts, "reference_id = '" + reference.Id + "'")
}
query := strings.Join(queryParts, " OR ")
@@ -46,7 +44,6 @@ func Show(w http.ResponseWriter, r *http.Request) {
// TODO only if len(refs) >= 1
var nextQueryParts []string
for _, reference := range refs {
- fmt.Println("> " + reference.MessageId)
nextQueryParts = append(nextQueryParts, "id = '" + reference.MessageId + "'")
}
nextQuery := strings.Join(nextQueryParts, " OR ")
@@ -57,9 +54,5 @@ func Show(w http.ResponseWriter, r *http.Request) {
// Where date is newer than message
Select()
- fmt.Println("-------------------")
- fmt.Println(err)
- fmt.Println(len(replies))
-
renderMessageTemplate(w, listName, message, replies)
}