Skip to content

Commit

Permalink
Convert logs to JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar committed Jul 11, 2023
1 parent 671b29a commit 2953978
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions etc/service/meteor/log/run
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ if [ "${LOG_TO_STDOUT}" != "1" ]; then

exec chpst -u nobody:nogroup svlogd -tt /var/log/meteor
else
# TODO: Exit with 115. See: https://gitlab.com/tozd/dinit/-/issues/1
exec chpst -u nobody:nogroup cat
exec chpst -u nobody:nogroup regex2json "^\\s*(?:(?P<___json___optional>\\{.*\\})|(?P<msg___optional>.+?))\\s*$"
fi

0 comments on commit 2953978

Please sign in to comment.