All node stderr should go to the log files. Also fixing unread counts coffeescript.

This commit is contained in:
Samuel Clay 2020-12-17 14:13:44 -05:00
parent 74997ff554
commit 323792691b
9 changed files with 13 additions and 13 deletions

View file

@ -4,8 +4,8 @@ directory=/srv/code/go/bin/
user=sclay
autostart=true
autorestart=true
#redirect_stderr=True
redirect_stderr=True
priority=991
stopsignal=HUP
stdout_logfile = /srv/newsblur/logs/imageproxy.log
environment = IMAGEPROXY_CACHE="memory:200:4h",IMAGEPROXY_ADDR="localhost:4593",IMAGEPROXY_SIGNATUREKEY="@/etc/imageproxy.key",IMAGEPROXY_VERBOSE=1
environment = IMAGEPROXY_CACHE="memory:200:4h",IMAGEPROXY_ADDR="localhost:4593",IMAGEPROXY_SIGNATUREKEY="@/etc/imageproxy.key",IMAGEPROXY_VERBOSE=1

View file

@ -4,7 +4,7 @@ directory=/srv/newsblur
user=root
autostart=true
autorestart=true
#redirect_stderr=True
redirect_stderr=True
priority=991
stopsignal=HUP
stdout_logfile = /var/log/mongodb/mms-agent.log

View file

@ -4,7 +4,7 @@ directory=/srv/newsblur
user=sclay
autostart=true
autorestart=true
#redirect_stderr=True
redirect_stderr=True
priority=991
stopsignal=HUP
stdout_logfile = /srv/newsblur/logs/favicons.log

View file

@ -5,7 +5,7 @@ environment=NODE_ENV=production
user=sclay
autostart=true
autorestart=true
#redirect_stderr=True
redirect_stderr=True
priority=991
stopsignal=HUP
stdout_logfile = /srv/newsblur/logs/original_page.log

View file

@ -5,7 +5,7 @@ environment=NODE_ENV=production
user=sclay
autostart=true
autorestart=true
#redirect_stderr=True
redirect_stderr=True
priority=991
stopsignal=HUP
stdout_logfile = /srv/newsblur/logs/original_text.log

View file

@ -5,7 +5,7 @@ environment=NODE_ENV=production
user=sclay
autostart=true
autorestart=true
#redirect_stderr=True
redirect_stderr=True
minfds = 10000
priority=991
stopsignal=HUP

View file

@ -4,8 +4,8 @@ directory=/srv/newsblur
user=sclay
autostart=true
autorestart=true
#redirect_stderr=True
redirect_stderr=True
priority=991
stopsignal=HUP
stdout_logfile = /srv/newsblur/logs/unread_counts.log
environment = NODE_ENV=production,NODE_SSL=on
environment = NODE_ENV=production,NODE_SSL=on

View file

@ -54,7 +54,7 @@ io.on 'connection', (socket) ->
ip = socket.handshake.headers['X-Forwarded-For'] || socket.handshake.address
socket.on 'subscribe:feeds', (@feeds, @username) ->
log.info @username, "Connecting (#{feeds.length} feeds, #{ip})," +
log.info @username, "Connecting (#{@feeds.length} feeds, #{ip})," +
" (#{io.engine.clientsCount} connected) " +
" #{if SECURE then "(SSL)" else "(non-SSL)"}"

View file

@ -67,11 +67,11 @@
io.on('connection', function(socket) {
var ip;
ip = socket.handshake.headers['X-Forwarded-For'] || socket.handshake.address;
socket.on('subscribe:feeds', function(feeds1, username) {
socket.on('subscribe:feeds', function(feeds, username) {
var ref;
this.feeds = feeds1;
this.feeds = feeds;
this.username = username;
log.info(this.username, `Connecting (${feeds.length} feeds, ${ip}),` + ` (${io.engine.clientsCount} connected) ` + ` ${SECURE ? "(SSL)" : "(non-SSL)"}`);
log.info(this.username, `Connecting (${this.feeds.length} feeds, ${ip}),` + ` (${io.engine.clientsCount} connected) ` + ` ${SECURE ? "(SSL)" : "(non-SSL)"}`);
if (!this.username) {
return;
}