Commit 89c3ce14dfe58cc81a482521f4e0f5b40958456e
1 parent
f0992162f0
Exists in
master
Perbaikan log
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
lib/apiserver/routers/smstools.js
... | ... | @@ -31,7 +31,7 @@ async function pageRestart(req, res) { |
31 | 31 | function pageLog(req, res) { |
32 | 32 | const maxLines = (Number(req.query.max) || 200); |
33 | 33 | const keyword = req.query.keyword && escapeQuotes(req.query.keyword, '\'"&|*<>[];$'); |
34 | - const cmd = req.query.keyword ? `tail -n ${maxLines * 50} | grep ${keyword} | tail -n ${maxLines} | tac` | |
34 | + const cmd = req.query.keyword ? `tail -n ${maxLines * 50} /var/log/smsd/smsd.log | grep --ignore-case ${keyword} | tail -n ${maxLines} | tac` | |
35 | 35 | : `tail -n ${maxLines} /var/log/smsd/smsd.log | tac`; |
36 | 36 | |
37 | 37 | logger.verbose('ROUTER-SMSTOOLS: Getting log', { keyword, maxLines, cmd }); |