diff options
Diffstat (limited to 'modules/log/stack.go')
-rw-r--r-- | modules/log/stack.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/log/stack.go b/modules/log/stack.go index 568c10cd00..8fc3f35421 100644 --- a/modules/log/stack.go +++ b/modules/log/stack.go @@ -7,7 +7,7 @@ package log import ( "bytes" "fmt" - "io/ioutil" + "os" "runtime" ) @@ -38,7 +38,7 @@ func Stack(skip int) string { fmt.Fprintf(buf, "%s:%d (0x%x)\n", filename, lineNumber, programCounter) // Now try to print the offending line if filename != lastFilename { - data, err := ioutil.ReadFile(filename) + data, err := os.ReadFile(filename) if err != nil { // can't read this sourcefile // likely we don't have the sourcecode available |