mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 13:33:17 -06:00
[bugfix] Trim log entries to 1700 chars before they enter syslog (#493)
* start implementing trimming hook * add test with very long test * test syslog w/ unix socket + long (trimmed) msg * trim long entries with trimhook * trim to 1700 chars instead
This commit is contained in:
parent
2259838108
commit
728c4a5e38
4 changed files with 122 additions and 3 deletions
|
|
@ -73,7 +73,7 @@ func Initialize() error {
|
|||
return err
|
||||
}
|
||||
|
||||
logrus.AddHook(hook)
|
||||
logrus.AddHook(&trimHook{hook})
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue