Add test files and enhance logging in various components
- Introduced test files for the blossom and database packages to improve test coverage and ensure functionality. - Updated logging practices by suppressing unnecessary log outputs during tests to enhance clarity and focus on relevant information. - Refactored error handling in the `handle-message` and `handle-req` functions to avoid logging expected context cancellation errors during shutdown. - Bumped version to v0.25.2 to reflect these updates.
This commit is contained in:
@@ -964,6 +964,5 @@ func (f *Follows) AddFollow(pub []byte) {
|
||||
}
|
||||
|
||||
func init() {
|
||||
log.T.F("registering follows ACL")
|
||||
Registry.Register(new(Follows))
|
||||
}
|
||||
|
||||
@@ -235,6 +235,5 @@ func (m *Managed) GetManagedACL() *database.ManagedACL {
|
||||
}
|
||||
|
||||
func init() {
|
||||
log.T.F("registering managed ACL")
|
||||
Registry.Register(new(Managed))
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package acl
|
||||
|
||||
import (
|
||||
"lol.mleku.dev/log"
|
||||
"next.orly.dev/app/config"
|
||||
"next.orly.dev/pkg/encoders/bech32encoding"
|
||||
"next.orly.dev/pkg/encoders/event"
|
||||
@@ -86,6 +85,5 @@ func (n None) CheckPolicy(ev *event.E) (allowed bool, err error) {
|
||||
func (n None) Syncer() {}
|
||||
|
||||
func init() {
|
||||
log.T.F("registering none ACL")
|
||||
Registry.Register(new(None))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user