Browse Source

Reorder `log.do_location_header` order

gingerBill 5 years ago
parent
commit
2a6130b7e1
1 changed files with 4 additions and 2 deletions
  1. 4 2
      core/log/file_console_logger.odin

+ 4 - 2
core/log/file_console_logger.odin

@@ -128,13 +128,15 @@ do_location_header :: proc(opts: Options, buf: ^strings.Builder, location := #ca
 		fmt.sbprint(buf, file);
 		fmt.sbprint(buf, file);
 	}
 	}
 	if .Line in opts {
 	if .Line in opts {
-		if Location_File_Opts & opts != nil || .Procedure in opts do fmt.sbprint(buf, ":");
+		if (Location_File_Opts | {.Procedure}) & opts != nil {
+			fmt.sbprint(buf, ":");
+		}
 		fmt.sbprint(buf, location.line);
 		fmt.sbprint(buf, location.line);
 	}
 	}
 
 
 	if .Procedure in opts {
 	if .Procedure in opts {
 		if Location_File_Opts & opts != nil {
 		if Location_File_Opts & opts != nil {
-			fmt.sbprint(buf, ".");
+			fmt.sbprint(buf, ":");
 		}
 		}
 		fmt.sbprintf(buf, "%s()", location.procedure);
 		fmt.sbprintf(buf, "%s()", location.procedure);
 	}
 	}