mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-29 02:28:10 -07:00
(tested) complete replace logrus with zerolog
* remove cobra dependency and split execs to mochi and e2e * add log init synchronization
This commit is contained in:
@@ -61,7 +61,6 @@ func (cfg Config) Validate() Config {
|
||||
Dur("provided", cfg.ReadTimeout).
|
||||
Dur("default", validcfg.ReadTimeout).
|
||||
Msg("falling back to default configuration")
|
||||
|
||||
}
|
||||
|
||||
if cfg.WriteTimeout <= 0 {
|
||||
|
||||
@@ -8,8 +8,13 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/sot-tech/mochi/bittorrent"
|
||||
"github.com/sot-tech/mochi/pkg/log"
|
||||
)
|
||||
|
||||
func init() {
|
||||
_ = log.ConfigureLogger("", "warn", false, false)
|
||||
}
|
||||
|
||||
func TestWriteError(t *testing.T) {
|
||||
table := []struct {
|
||||
reason, expected string
|
||||
|
||||
Reference in New Issue
Block a user