mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Add grid view, image to tag (#641)
* Add grid view for tags * Add tag page * Import/export tags * Add tag name uniqueness checks * Fix styling on missing marker previews * Add trace loglevel * Add SQL trace * Add filter options for tags * Add tag sort by options * Add tag page keyboard shortcuts
This commit is contained in:
@@ -65,6 +65,8 @@ func logLevelFromString(level string) logrus.Level {
|
||||
ret = logrus.WarnLevel
|
||||
} else if level == "Error" {
|
||||
ret = logrus.ErrorLevel
|
||||
} else if level == "Trace" {
|
||||
ret = logrus.TraceLevel
|
||||
}
|
||||
|
||||
return ret
|
||||
@@ -178,6 +180,15 @@ func Trace(args ...interface{}) {
|
||||
logger.Trace(args...)
|
||||
}
|
||||
|
||||
func Tracef(format string, args ...interface{}) {
|
||||
logger.Tracef(format, args...)
|
||||
l := &LogItem{
|
||||
Type: "trace",
|
||||
Message: fmt.Sprintf(format, args...),
|
||||
}
|
||||
addLogItem(l)
|
||||
}
|
||||
|
||||
func Debug(args ...interface{}) {
|
||||
logger.Debug(args...)
|
||||
l := &LogItem{
|
||||
|
||||
Reference in New Issue
Block a user