Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1fceb0e0da | |||
| b7bd30b550 |
@@ -1,5 +1,10 @@
|
|||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
|
v1.16.2 - 2025-11-21
|
||||||
|
|
||||||
|
Changed:
|
||||||
|
- msg: fill debug null pointer deref.
|
||||||
|
|
||||||
v1.16.1 - 2025-11-21
|
v1.16.1 - 2025-11-21
|
||||||
|
|
||||||
Changed:
|
Changed:
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import (
|
|||||||
var (
|
var (
|
||||||
enableQuiet bool
|
enableQuiet bool
|
||||||
enableVerbose bool
|
enableVerbose bool
|
||||||
debug *dbg.DebugPrinter
|
debug = dbg.New()
|
||||||
w io.Writer
|
w io.Writer
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -123,5 +123,7 @@ func Println(a ...any) {
|
|||||||
// SetWriter changes the output for messages.
|
// SetWriter changes the output for messages.
|
||||||
func SetWriter(dst io.Writer) {
|
func SetWriter(dst io.Writer) {
|
||||||
w = dst
|
w = dst
|
||||||
|
dbgEnabled := debug.Enabled
|
||||||
debug = dbg.To(lib.WithCloser(w))
|
debug = dbg.To(lib.WithCloser(w))
|
||||||
|
debug.Enabled = dbgEnabled
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user