Fix P51 logd-rotation patch line numbers

The service_logs declaration hunk was targeting line 48 instead of 49,
causing patch to insert it inside the let persistent_log chain instead
of inside the thread spawn closure.
This commit is contained in:
2026-05-21 00:09:13 +03:00
parent 2e477bbc90
commit 54a33a7a15
+2 -2
View File
@@ -71,12 +71,12 @@ index 070de3d6..4ea5365d 100644
+ }
+}
+
@@ -48,0 +107,4 @@ impl<'sock> LogScheme<'sock> {
@@ -49,0 +109,4 @@ impl<'sock> LogScheme<'sock> {
+ let mut service_logs: HashMap<String, LogFile> = HashMap::new();
+
+ let _ = std::fs::create_dir_all(LOG_DIR);
+
@@ -51 +113 @@ impl<'sock> LogScheme<'sock> {
@@ -52 +114 @@ impl<'sock> LogScheme<'sock> {
- OutputCmd::Log(line) => {
+ OutputCmd::Log { context, line } => {
@@ -55,0 +118,22 @@ impl<'sock> LogScheme<'sock> {