e1.6.1 Configurable internal errors, minor documentation and code fixes.
This commit is contained in:
@ -3,7 +3,6 @@ package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
@ -68,14 +67,6 @@ func fmtErrorf(format string, args ...any) error {
|
||||
return fmt.Errorf(format, args...)
|
||||
}
|
||||
|
||||
// fmtFprintf wrapper (used for internal errors)
|
||||
func fmtFprintf(w *os.File, format string, args ...any) {
|
||||
if !strings.HasPrefix(format, "log: ") {
|
||||
format = "log: " + format
|
||||
}
|
||||
fmt.Fprintf(w, format, args...)
|
||||
}
|
||||
|
||||
// combineErrors helper
|
||||
func combineErrors(err1, err2 error) error {
|
||||
if err1 == nil {
|
||||
|
||||
Reference in New Issue
Block a user