Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add a dedicate air debug config for debug level logging

天舟06b3504b8fbc
diff --git a/.air.toml b/.air.toml
index 9b093f9a83..4e3fb1f33d 100644
--- a/.air.toml
+++ b/.air.toml
@@ -3,7 +3,7 @@ tmp_dir = ".air"
[build]
bin = "./.air/bytebase --port 8080"
- cmd = "go build --tags \"sqlite_trace\" -o ./.air/bytebase ./bin/server/main.go"
+ cmd = "go build -o ./.air/bytebase ./bin/server/main.go"
delay = 1000
exclude_dir = [".air", "vendor"]
exclude_file = []
diff --git a/.air_debug.toml b/.air_debug.toml
new file mode 100644
index 0000000000..fd00f19e31
--- /dev/null
+++ b/.air_debug.toml
@@ -0,0 +1,13 @@
+root = "."
+tmp_dir = ".air"
+
+[build]
+ bin = "./.air/bytebase --port 8080 --debug"
+ cmd = "go build --tags \"sqlite_trace\" -o ./.air/bytebase ./bin/server/main.go"
+ delay = 1000
+ exclude_dir = [".air", "vendor"]
+ exclude_file = []
+ exclude_regex = []
+ exclude_unchanged = false
+ follow_symlink = false
+ full_bin = ""
\ No newline at end of file