Skip to content

Commit abc449e

Browse files
authored
[type:fix] remove log (#105)
1 parent 1f20cce commit abc449e

File tree

8 files changed

+13
-709
lines changed

8 files changed

+13
-709
lines changed

core/idutil_test.go

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@
1818
package core
1919

2020
import (
21-
"github.com/acmestack/godkits/log"
21+
"fmt"
2222
uuid "github.com/satori/go.uuid"
2323
"testing"
2424
)
2525

2626
func TestGenUUIDRandom(t *testing.T) {
27-
log.Info(UnixMillisId())
28-
log.Info(UnixNanoTimeId())
29-
log.Info(UUIDV1())
30-
log.Info(UUIDV2('A'))
31-
log.Info(UUIDV3(uuid.NamespaceOID, "test"))
32-
log.Info(UUIDV5(uuid.NamespaceOID, "test"))
33-
log.Info(RandomUUID())
34-
log.Info(SimpleRandomUUID())
35-
log.Info(ObjectId())
36-
log.Info(ObjectIdWithNow())
27+
fmt.Println(UnixMillisId())
28+
fmt.Println(UnixMillisId())
29+
fmt.Println(UnixNanoTimeId())
30+
fmt.Println(UUIDV1())
31+
fmt.Println(UUIDV2('A'))
32+
fmt.Println(UUIDV3(uuid.NamespaceOID, "test"))
33+
fmt.Println(UUIDV5(uuid.NamespaceOID, "test"))
34+
fmt.Println(RandomUUID())
35+
fmt.Println(SimpleRandomUUID())
36+
fmt.Println(ObjectId())
37+
fmt.Println(ObjectIdWithNow())
3738
}

core/lang/snowflake.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package lang
1919

2020
import (
2121
"fmt"
22-
"github.com/acmestack/godkits/log"
2322
"sync"
2423
"time"
2524
)
@@ -91,7 +90,7 @@ func (s *Snowflake) NextVal() int64 {
9190
t := now - epoch
9291
if t > timestampMax {
9392
s.Unlock()
94-
log.Error("epoch must be between 0 and %d", timestampMax-1)
93+
fmt.Println(fmt.Sprintf("epoch must be between 0 and %d", timestampMax-1))
9594
return 0
9695
}
9796
s.timestamp = now

log/async_bufwriter.go

Lines changed: 0 additions & 187 deletions
This file was deleted.

log/async_bufwriter_test.go

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)