From 688b89fd2dd9db023f92eb1468d0d30d37637a4d Mon Sep 17 00:00:00 2001 From: Jules Date: Sat, 31 Mar 2018 12:36:54 -0400 Subject: yes --- lib/index.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/index.js') diff --git a/lib/index.js b/lib/index.js index d0f5e76..7385d2f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -103,6 +103,7 @@ site.init = function(){ tag: sanitize(req.body.tag) || 'plop', remote_addr: req.ip || '127.0.0.1', }).then(function(image){ + if (req.body.ascii) console.log(req.body.ascii.length) if (process.env.SEND_ASCII && req.body.ascii && req.body.ascii.length < 800 * 100) { var stream = fs.createWriteStream("/home/panke/irc/irc.asdf.us/#ascii/in", {flags:'a'}) stream.write(req.body.ascii + "\n") @@ -113,6 +114,8 @@ site.init = function(){ size: req.file.size, url, }) + }).catch(function(err){ + console.error("db error", err) }) } }) -- cgit v1.2.3-70-g09d2