mirror of
https://github.com/bluenviron/mediamtx
synced 2025-02-27 17:10:45 +00:00
update linter settings
This commit is contained in:
parent
74b592b211
commit
692b236c6c
@ -6,3 +6,6 @@ linters:
|
|||||||
- gofmt
|
- gofmt
|
||||||
- golint
|
- golint
|
||||||
- misspell
|
- misspell
|
||||||
|
|
||||||
|
issues:
|
||||||
|
exclude-use-default: false
|
||||||
|
@ -13,14 +13,13 @@ import (
|
|||||||
// Level is a log level.
|
// Level is a log level.
|
||||||
type Level int
|
type Level int
|
||||||
|
|
||||||
|
// Log levels.
|
||||||
const (
|
const (
|
||||||
Debug Level = iota
|
Debug Level = iota
|
||||||
Info
|
Info
|
||||||
Warn
|
Warn
|
||||||
)
|
)
|
||||||
|
|
||||||
// Log levels.
|
|
||||||
|
|
||||||
// Destination is a log destination.
|
// Destination is a log destination.
|
||||||
type Destination int
|
type Destination int
|
||||||
|
|
||||||
@ -102,6 +101,7 @@ func itoa(buf *[]byte, i int, wid int) {
|
|||||||
*buf = append(*buf, b[bp:]...)
|
*buf = append(*buf, b[bp:]...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Log writes a log entry.
|
||||||
func (lh *Logger) Log(level Level, format string, args ...interface{}) {
|
func (lh *Logger) Log(level Level, format string, args ...interface{}) {
|
||||||
if level < lh.level {
|
if level < lh.level {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user