2022-04-26 17:57:01 +00:00
|
|
|
package loghelper
|
|
|
|
|
|
|
|
import (
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
)
|
|
|
|
|
|
|
|
// A simple helper function that will help wrap the error message.
|
2022-04-27 18:01:59 +00:00
|
|
|
func LogEndpoint(endpoint string) *log.Entry {
|
2022-04-26 17:57:01 +00:00
|
|
|
return log.WithFields(log.Fields{
|
2022-04-27 18:01:59 +00:00
|
|
|
"endpoint": endpoint,
|
2022-04-26 17:57:01 +00:00
|
|
|
})
|
|
|
|
}
|