MCPcopy Create free account
hub / github.com/Qovery/engine / disable

Method disable

lib-engine/src/log_file_writer.rs:38–46  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

36 }
37
38 pub fn disable(&self) {
39 if let Ok(mut file) = self.lock_file() {
40 *file = None;
41 self.file.0.store(true, Ordering::Relaxed);
42
43 // Trigger a write call to disable the current file in the LogWriter
44 debug!("disable log file writer");
45 }
46 }
47
48 fn lock_file(&self) -> io::Result<MutexGuard<'_, Option<BufWriter<File>>>> {
49 self.file.1.lock().map_err(|_| io::Error::other("Mutex lock failed"))

Callers 1

disable_log_file_writerFunction · 0.80

Calls 1

lock_fileMethod · 0.80

Tested by

no test coverage detected