autobrr/internal
soup c2fcd91da7
refactor(logs): improve log sanitization performance (#779)
* refactor log sanitization for better performance

* Fix token error, add mutex for safer concurrency

* serve sanitized version directly from memory

* further improvements

made it check for "module":"irc" before running the irc regex checks

* Revert "further improvements"

This reverts commit 260037c3a58e1e760613167d3e15136b313c0612.

* update irc regexes to handle special characters

- added prefixes to the irc patterns
- improved tests

* more improvements for irc regexes

* fixed errors

* another edge case bites the dust

* regex improvements

* lock to 1 worker if cpu cores is 2 or less

* removed unused code

* revert to single thread

Moved regex patterns and replacements into a separate array for easier maintenance and readability.

Optimized the regex patterns that share the same replacement string to avoid redundancy.

Modify SanitizeLogFile to accept io.Writer for direct output

* style

* only check relevant lines

- only check relevant lines
- dont break unless length=0

* revert breaking change

* handle api and auth cases

---------

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
2023-03-26 23:25:23 +02:00
..
action feat(actions): add "don't start" option for rtorrent (#782) 2023-03-26 23:17:44 +02:00
announce feat: add usenet support (#543) 2023-03-04 20:27:18 +01:00
api fix(config): improve container detection (#420) 2022-08-21 18:21:43 +02:00
auth feat(http): improve invalid login handling (#597) 2022-12-31 01:04:41 +01:00
client feat(releases): retry failed downloads (#491) 2022-10-19 21:52:31 +02:00
config enhancement(config): clarify logPath usage (#783) 2023-03-26 23:14:07 +02:00
database fix(feeds): check settings before unmarshalling (#789) 2023-03-26 23:10:59 +02:00
domain fix(actions): watch folder (#780) 2023-03-22 21:57:18 +01:00
download_client feat: add usenet support (#543) 2023-03-04 20:27:18 +01:00
events feat(logging); improve messages and errors (#336) 2022-07-05 13:31:44 +02:00
feed fix(feeds): torznab newznab category parsing (#775) 2023-03-19 23:35:33 +01:00
filter feat(releases): support magnet links (#730) 2023-02-28 22:16:10 +01:00
http refactor(logs): improve log sanitization performance (#779) 2023-03-26 23:25:23 +02:00
indexer fix(indexers): pbay announce bot name (#790) 2023-03-26 23:09:59 +02:00
irc feat(irc): support optional SASL and NickServ auth (#511) 2022-10-27 22:25:58 +02:00
logger feat(logging): make log size and log backups configurable (#657) 2023-01-17 21:35:31 +01:00
mock feat(logging); improve messages and errors (#336) 2022-07-05 13:31:44 +02:00
notification fix(newznab): Use valid usenet release protocol for Starrs (#762) 2023-03-19 20:58:47 +01:00
release fix(macros): torrentdata parsing (#757) 2023-03-19 20:53:42 +01:00
scheduler feat: show new updates in dashboard (#690) 2023-02-05 18:44:11 +01:00
server feat: show new updates in dashboard (#690) 2023-02-05 18:44:11 +01:00
update feat: show new updates in dashboard (#690) 2023-02-05 18:44:11 +01:00
user feat(logging); improve messages and errors (#336) 2022-07-05 13:31:44 +02:00
utils feat: add backend 2021-08-11 15:26:17 +02:00