Update mempool-logger and syslog.conf to separate info and notice msgs

This commit is contained in:
wiz 2020-10-13 19:55:29 +09:00
parent 056fe5712d
commit 3fd5277912
No known key found for this signature in database
GPG Key ID: A394E332255A6173
2 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,6 @@
trap "" PIPE
while read input;do
if [ ! -z "${input}" ];then
echo "\`\`\`${input}\`\`\`" | /usr/local/bin/keybase chat send --nonblock mempool.syslog
echo "\`\`\`${input}\`\`\` $*" | /usr/local/bin/keybase chat send --nonblock mempool.syslog
fi
done

View File

@ -1,3 +1,4 @@
local7.debug /var/log/mempool.debug
local7.>=notice |/usr/local/bin/sudo -u mempool /usr/local/bin/mempool-logger @channel
local7.=info |/usr/local/bin/sudo -u mempool /usr/local/bin/mempool-logger
local7.info /var/log/mempool
local7.notice |/usr/local/bin/sudo -u mempool /usr/local/bin/mempool-logger
local7.* /var/log/mempool.debug