diff options
| author | Mikkel Hjortshøj <fyoucon@gmail.com> | 2020-07-05 19:53:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-05 19:53:22 +0200 |
| commit | 6d9b2ec5b48e6ab11ee8cc2863e44b02a8fa4eef (patch) | |
| tree | e569901b4231b63edf62adf57c8710871a3d77c7 | |
| parent | 51e50d3e318ce2588ce2d27c2af7ef6f11a0f02b (diff) | |
| parent | d749f5c7048199ee4ac089aaa3a2b6747264598f (diff) | |
Merge pull request #685 from ThisDrunkDane/master
Fix misplaced line number in log (was wrongly formatted and before procedure)
| -rw-r--r-- | core/log/file_console_logger.odin | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/log/file_console_logger.odin b/core/log/file_console_logger.odin index 1c951a8ff..ccecbc8b8 100644 --- a/core/log/file_console_logger.odin +++ b/core/log/file_console_logger.odin @@ -128,19 +128,18 @@ do_location_header :: proc(opts: Options, buf: ^strings.Builder, location := #ca fmt.sbprint(buf, file); } if .Line in opts { - if (Location_File_Opts | {.Procedure}) & opts != nil { + if Location_File_Opts & opts != nil { fmt.sbprint(buf, ":"); } fmt.sbprint(buf, location.line); } if .Procedure in opts { - if Location_File_Opts & opts != nil { + if (Location_File_Opts | {.Line}) & opts != nil { fmt.sbprint(buf, ":"); } fmt.sbprintf(buf, "%s()", location.procedure); } - fmt.sbprint(buf, "] "); } |