From 3769ca727fefc1c7e26d463360a965e4963fcb5c Mon Sep 17 00:00:00 2001 From: Alessio Date: Fri, 18 Aug 2023 19:08:03 -0300 Subject: [PATCH] Remove logging of every object which is breaking the build and also very noisy --- internal/webserver/server.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/webserver/server.go b/internal/webserver/server.go index 5312f22..4e77e34 100644 --- a/internal/webserver/server.go +++ b/internal/webserver/server.go @@ -237,7 +237,6 @@ func (app *Application) TweetDetail(w http.ResponseWriter, r *http.Request) { panic(err) } } - app.InfoLog.Printf(to_json(trove)) data.TweetDetailView = trove app.buffered_render_tweet_page(w, "tpl/tweet_detail.tpl", data) @@ -309,7 +308,6 @@ func (app *Application) UserFeed(w http.ResponseWriter, r *http.Request) { feed.Users[user.ID] = user data := UserProfileData{Feed: feed, UserID: user.ID} - app.InfoLog.Printf(to_json(data)) if r.Header.Get("HX-Request") == "true" && c.CursorPosition == persistence.CURSOR_MIDDLE { // It's a Show More request @@ -339,7 +337,6 @@ func (app *Application) Timeline(w http.ResponseWriter, r *http.Request) { } data := UserProfileData{Feed: feed} // TODO: wrong struct - app.InfoLog.Printf(to_json(data)) if r.Header.Get("HX-Request") == "true" && c.CursorPosition == persistence.CURSOR_MIDDLE { // It's a Show More request