Compare commits
2 Commits
abb35b8fac
...
3592b86a94
| Author | SHA1 | Date | |
|---|---|---|---|
| 3592b86a94 | |||
| b49ed22665 |
@@ -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());
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user