Compare commits

..

2 Commits

Author SHA1 Message Date
vhaudiquet 3592b86a94 fmt
record-daemon / Build, check and test (push) Failing after 13m47s
2026-06-02 20:14:17 +02:00
vhaudiquet b49ed22665 fix: tryfix record-daemon disconnecting from league client 2026-06-02 20:14:01 +02:00
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -72,6 +72,9 @@ impl LqpClient {
pub async fn connect(&self, creds: LockfileCredentials) -> Result<()> {
info!("Connecting to League Client at port {}", creds.port);
// Reset shutdown flag for new connection
*self.shutdown.write().await = false;
// Store credentials
*self.credentials.write().await = Some(creds.clone());
+2 -2
View File
@@ -599,7 +599,7 @@ fn init_logging(level: &str, log_file: Option<&std::path::Path>) {
.file_stem()
.and_then(|s| s.to_str())
.unwrap_or("daemon");
let file_appender = tracing_appender::rolling::RollingFileAppender::builder()
.rotation(tracing_appender::rolling::Rotation::DAILY)
.filename_prefix(prefix)
@@ -608,7 +608,7 @@ fn init_logging(level: &str, log_file: Option<&std::path::Path>) {
.expect("Failed to create log file appender");
let (non_blocking, _guard) = tracing_appender::non_blocking(file_appender);
// Store the guard to prevent it from being dropped
// We leak it intentionally to keep logging working for the daemon's lifetime
std::mem::forget(_guard);