mirror of https://github.com/statping/statping
removed unused log
parent
dbdf92411f
commit
445308e558
|
@ -1,7 +1,6 @@
|
|||
package notifiers
|
||||
|
||||
import (
|
||||
"github.com/prometheus/common/log"
|
||||
"github.com/statping/statping/types/failures"
|
||||
"github.com/statping/statping/types/null"
|
||||
"github.com/statping/statping/types/services"
|
||||
|
@ -9,6 +8,8 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
var log = utils.Log.WithField("type", "notifier")
|
||||
|
||||
func InitNotifiers() {
|
||||
Add(
|
||||
slacker,
|
||||
|
|
|
@ -2,12 +2,13 @@ package checkins
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/prometheus/common/log"
|
||||
"github.com/statping/statping/types/failures"
|
||||
"github.com/statping/statping/utils"
|
||||
"time"
|
||||
)
|
||||
|
||||
var log = utils.Log.WithField("type", "checkin")
|
||||
|
||||
// RecheckCheckinFailure will check if a Service Checkin has been reported yet
|
||||
func (c *Checkin) RecheckCheckinFailure(guard chan struct{}) {
|
||||
between := utils.Now().Sub(utils.Now()).Seconds()
|
||||
|
|
|
@ -2,7 +2,6 @@ package users
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/prometheus/common/log"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"time"
|
||||
)
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
package users
|
||||
|
||||
import (
|
||||
"github.com/prometheus/common/log"
|
||||
"github.com/statping/statping/database"
|
||||
"github.com/statping/statping/utils"
|
||||
)
|
||||
|
||||
var db database.Database
|
||||
var (
|
||||
db database.Database
|
||||
log = utils.Log.WithField("type", "user")
|
||||
)
|
||||
|
||||
func SetDB(database database.Database) {
|
||||
db = database.Model(&User{})
|
||||
|
|
|
@ -4,7 +4,6 @@ import (
|
|||
"fmt"
|
||||
"github.com/fatih/structs"
|
||||
"github.com/getsentry/sentry-go"
|
||||
"github.com/prometheus/common/log"
|
||||
Logger "github.com/sirupsen/logrus"
|
||||
"github.com/statping/statping/types/null"
|
||||
"gopkg.in/natefinch/lumberjack.v2"
|
||||
|
@ -47,7 +46,7 @@ func SentryInit(v *string, allow bool) {
|
|||
Environment: goEnv,
|
||||
Release: version,
|
||||
}); err != nil {
|
||||
log.Errorln(err)
|
||||
Log.Errorln(err)
|
||||
}
|
||||
Log.Infoln("Error Reporting initiated, thank you!")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue