Change the other location too (#5608)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2025-11-06 13:01:41 -05:00
committed by GitHub
parent 0a4cf49064
commit 9d88155932
+1 -1
View File
@@ -553,7 +553,7 @@ impl RequestLog {
fn finish(&mut self) -> Result<()> {
if let Some(mut writer) = self.writer.take() {
writer.flush()?;
let logs_dir = crate::logging::prepare_log_directory("llm", true)?;
let logs_dir = Paths::in_state_dir("logs");
let log_path = |i| logs_dir.join(format!("llm_request.{}.jsonl", i));
for i in (0..LOGS_TO_KEEP - 1).rev() {