From fdf0b67f3a3599003e4da88fb78806da1dce51b3 Mon Sep 17 00:00:00 2001 From: Robin Malley Date: Sun, 4 Apr 2021 06:11:14 +0000 Subject: [PATCH] Remove prints. Remove some extranious prints. --- src/lua/endpoints/paste_get.lua | 2 -- src/lua/endpoints/paste_post.lua | 1 - 2 files changed, 3 deletions(-) diff --git a/src/lua/endpoints/paste_get.lua b/src/lua/endpoints/paste_get.lua index b178831..ec6b0e0 100644 --- a/src/lua/endpoints/paste_get.lua +++ b/src/lua/endpoints/paste_get.lua @@ -13,7 +13,6 @@ local function paste_get(req) http_response(req,303,"") return elseif host == config.domain and author == nil then - print("doing anon paste") text = cache.render(string.format("%s/_paste",host),function() log(LOG_DEBUG, "Cache missing, rendering post page") return assert(pages.paste{ @@ -26,7 +25,6 @@ local function paste_get(req) end) http_response(req,200,text) elseif host ~= config.domain and author then - print("doing author paste") text = assert(pages.author_paste{ domain = config.domain, user = author, diff --git a/src/lua/endpoints/paste_post.lua b/src/lua/endpoints/paste_post.lua index c17802f..bf61438 100644 --- a/src/lua/endpoints/paste_post.lua +++ b/src/lua/endpoints/paste_post.lua @@ -43,7 +43,6 @@ local function anon_paste(req,ps) --with a more elegent solution. log(LOG_DEBUG,string.format("new story: %q, length: %d",ps.title,string.len(ps.text))) - print("Unlisted:",ps.unlisted) local textsha3 = sha3(ps.text .. get_random_bytes(32)) util.sqlbind(stmnt_paste,"bind_blob",1,ps.text) util.sqlbind(stmnt_paste,"bind",2,ps.title)