Skip to content

Instantly share code, notes, and snippets.

View CRThaze's full-sized avatar

Diego Fernando Carrión CRThaze

View GitHub Profile
import (
log "github.com/sirupsen/logrus"
"github.com/jinzhu/gorm"
)
type GormLogger struct {}
func (*GormLogger) Print(v ...interface{}) {
if v[0] == "sql" {
log.WithFields(log.Fields{"module": "gorm", "type": "sql"}).Print(v[3])
@pascalpoitras
pascalpoitras / 1.md
Last active March 3, 2025 13:44
My WeeChat configuration

This configuration is not maintained anymore. You should think twice before using it, Breaking change and security issue will likely eventually happens as any abandonned project.