upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-03 14:50:22 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-03 15:18:23 +0000
commit874a8abe1d076cfafd9baf919ec23d7d58200698 (patch)
treedce0d0d36bddc496ff32f8555a8790d8dc7be7e4 /docs/reference
parent9fd4350c57bbe986ebf65bf3ea4c996572e81884 (diff)
parent92a9a3bfe0bc522e8ae411991a366a3a6310d525 (diff)
Merge relay.ngit.dev migration: bug fixes and migration tooling
This merge includes critical bug fixes and comprehensive migration tooling developed during the relay.ngit.dev migration effort. Bug Fixes: - Fix git protocol error handling to return HTTP 200 with ERR pkt-line - Fix naughty list false positives and DNS failure identification - Fix database query filters in load_existing_events (remove .since()) - Fix OID fetch tracking to distinguish 0 OIDs from successful fetches - Fix purgatory event source tracking for filtered expiry logging - Implement OID retry logic for 'not our ref' errors Migration Tools & Documentation: - Complete 5-phase migration analysis pipeline with orchestration script - Phase 1: Event fetching from source relay - Phase 2: Git sync verification - Phase 3: Categorization and relay comparison - Phase 4: Log extraction (parse failures, purgatory expiry) - Phase 5: Action classification for migration decisions - Comprehensive migration guide with lessons learned - Troubleshooting guide for permission and corruption issues Configuration: - Add NGIT_LOG_LEVEL configuration option - Update git throttle limits to 60/minute - Improve logging throughout for better observability
Diffstat (limited to 'docs/reference')
-rw-r--r--docs/reference/configuration.md37
1 files changed, 25 insertions, 12 deletions
diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md
index b24b498..b09b20f 100644
--- a/docs/reference/configuration.md
+++ b/docs/reference/configuration.md
@@ -1041,10 +1041,10 @@ Per-connection limits (built-in to relay-builder, not configurable):
1041 1041
1042### Logging Configuration 1042### Logging Configuration
1043 1043
1044#### `RUST_LOG` 1044#### `NGIT_LOG_LEVEL`
1045 1045
1046**Description:** Logging level and filters (standard Rust environment variable) 1046**Description:** Logging level and filters for application logging
1047**Type:** String (log level or filter) 1047**Type:** String (log level or filter expression)
1048**Default:** `info` 1048**Default:** `info`
1049**Required:** No 1049**Required:** No
1050 1050
@@ -1052,17 +1052,17 @@ Per-connection limits (built-in to relay-builder, not configurable):
1052 1052
1053```bash 1053```bash
1054# Simple levels 1054# Simple levels
1055RUST_LOG=error # Errors only 1055NGIT_LOG_LEVEL=error # Errors only
1056RUST_LOG=warn # Warnings and errors 1056NGIT_LOG_LEVEL=warn # Warnings and errors
1057RUST_LOG=info # Info, warnings, errors 1057NGIT_LOG_LEVEL=info # Info, warnings, errors (default)
1058RUST_LOG=debug # Debug and above 1058NGIT_LOG_LEVEL=debug # Debug and above
1059RUST_LOG=trace # Everything 1059NGIT_LOG_LEVEL=trace # Everything (very verbose)
1060 1060
1061# Module-specific 1061# Module-specific filtering
1062RUST_LOG=ngit_grasp=debug,actix_web=info 1062NGIT_LOG_LEVEL=ngit_grasp=debug,actix_web=info
1063 1063
1064# Complex filters 1064# Complex filters
1065RUST_LOG=debug,hyper=info,tokio=warn 1065NGIT_LOG_LEVEL=debug,hyper=info,tokio=warn
1066``` 1066```
1067 1067
1068**Log levels (most to least verbose):** 1068**Log levels (most to least verbose):**
@@ -1073,12 +1073,25 @@ RUST_LOG=debug,hyper=info,tokio=warn
10734. `warn` - Warnings about potential issues 10734. `warn` - Warnings about potential issues
10745. `error` - Errors only 10745. `error` - Errors only
1075 1075
1076**CLI flag:**
1077
1078```bash
1079ngit-grasp --log-level trace
1080```
1081
1076**Production recommendation:** 1082**Production recommendation:**
1077 1083
1078```bash 1084```bash
1079RUST_LOG=info,ngit_grasp=debug 1085NGIT_LOG_LEVEL=info
1080``` 1086```
1081 1087
1088**Notes:**
1089
1090- Uses Rust's `tracing` crate filter syntax
1091- Supports module-level filtering (e.g., `ngit_grasp=debug,hyper=info`)
1092- `trace` level can significantly impact performance
1093- For production, `info` or `warn` is recommended
1094
1082--- 1095---
1083 1096
1084### Security Configuration (Planned) 1097### Security Configuration (Planned)