Skip to content

Commit

Permalink
remove auto id from trace log
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Jan 1, 2025
1 parent 5aec1af commit b2fc9f7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -13444,7 +13444,6 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
// may handle them differently. Inserts are dealt with in a special debug trigger
//
if ((dbgCode != null) && (yz.uiDb.tablesCreated)) {
debugger
if (startOfSql.startsWith("insert") || startOfSql.startsWith("update") || startOfSql.startsWith("delete")) {
let sourceForCallerOfFunction = yz.uiDb.findSourceLineInCode(dbgCode)
let sourceFileName = null
Expand All @@ -13458,7 +13457,6 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
if (steps && (steps.length > 0)) {
lastTraceid = steps[steps.length - 1]
}
debugger
yz.uiDb.sqlui("INSERT INTO ui_table_debug_sql_log ( id , debug_tracer_id , sql_statement , fk_parent_debug_trace_log_id , debug_tick , caller_file_name , caller_line_number ) VALUES (?,?,?,?,?,?,?)",
[
yz.uiDb.uiDbNextId ++,
Expand Down Expand Up @@ -13583,10 +13581,11 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
}*/


yz.uiDb.sqlui("INSERT INTO ui_table_debug_trace_log ( fk_debug_id , run_time_millis , debug_tracer_id ," +
yz.uiDb.sqlui("INSERT INTO ui_table_debug_trace_log ( id , fk_debug_id , run_time_millis , debug_tracer_id ," +
" file_name , line_number, debug_tick ,line_text,arguments, caller_file_name , caller_line_number , " +
"fk_caller_debug_trace_log_id ) VALUES (?,?,?,?,?,?,?,?,?,?,?)",
"fk_caller_debug_trace_log_id ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)",
[
yz.uiDb.uiDbNextId ++,
yz.debug.currentDebugId,
Date.now(),
yz.debug.debugTracerId,
Expand Down Expand Up @@ -13769,8 +13768,9 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
// insert the trace record
//
if (sourceForFunction.found) {
yz.uiDb.sqlui("INSERT INTO ui_table_debug_trace_log ( fk_debug_id , run_time_millis , debug_tracer_id , file_name , line_number , debug_tick,line_text) VALUES (?,?,?,?,?,?,?)",
yz.uiDb.sqlui("INSERT INTO ui_table_debug_trace_log ( id , fk_debug_id , run_time_millis , debug_tracer_id , file_name , line_number , debug_tick,line_text) VALUES (?,?,?,?,?,?,?,?)",
[
yz.uiDb.uiDbNextId ++,
debugId,
Date.now(),
yz.debug.debugTracerId,
Expand Down Expand Up @@ -13882,7 +13882,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
await yz.uiDb.createAlaSqlTable({
tableName: "ui_table_debug_trace_log",
fields: [
{name: "id", fieldType: "INT PRIMARY KEY AUTOINCREMENT"},
{name: "id", fieldType: "INTEGER"},
{name: "fk_debug_id", fieldType: "STRING"},
{name: "debug_tracer_id", fieldType: "STRING"},
{name: "run_time_millis", fieldType: "INTEGER"},
Expand Down

0 comments on commit b2fc9f7

Please sign in to comment.