Remove prints.

Remove some extranious prints.
This commit is contained in:
Robin Malley 2021-04-04 06:11:14 +00:00
parent 33a23ef20c
commit fdf0b67f3a
2 changed files with 0 additions and 3 deletions

View File

@ -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,

View File

@ -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)