Start to use leveled log

This commit is contained in:
2022-02-24 12:14:52 +01:00
parent f18cc034bb
commit abcf02e488
43 changed files with 156 additions and 67 deletions

View File

@ -2,9 +2,10 @@ package obiseq
import (
"crypto/md5"
"log"
"sync/atomic"
log "github.com/sirupsen/logrus"
"git.metabarcoding.org/lecasofts/go/obitools/pkg/goutils"
)
@ -15,7 +16,7 @@ var _MaxInMemSeq = int32(0)
var _BioLogRate = int(100000)
func LogBioSeqStatus() {
log.Printf("@@@@>>>> Created seq : %d Destroyed : %d In Memory : %d", _NewSeq, _RecycleSeq, _InMemSeq)
log.Debugf("Created seq : %d Destroyed : %d In Memory : %d", _NewSeq, _RecycleSeq, _InMemSeq)
}
type Quality []uint8

View File

@ -3,7 +3,7 @@ package obiseq
import (
"fmt"
"hash/crc32"
"log"
log "github.com/sirupsen/logrus"
"strconv"
"sync"
)

View File

@ -2,7 +2,7 @@ package obiseq
import (
"fmt"
"log"
log "github.com/sirupsen/logrus"
"strings"
)

View File

@ -2,7 +2,7 @@ package obiseq
import (
"context"
"log"
log "github.com/sirupsen/logrus"
"github.com/PaesslerAG/gval"
)