mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 13:36:50 +00:00
fix: fix github action error caused by oltp modification (#2163)
Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
@@ -286,7 +286,7 @@ fn init_file_logging_internal(
|
|||||||
/// This prevents world-writable log directories from being a security hazard.
|
/// This prevents world-writable log directories from being a security hazard.
|
||||||
/// No-ops if permissions are already `0755` or stricter.
|
/// No-ops if permissions are already `0755` or stricter.
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
pub(super) fn ensure_dir_permissions(log_directory: &str) -> Result<(), TelemetryError> {
|
pub fn ensure_dir_permissions(log_directory: &str) -> Result<(), TelemetryError> {
|
||||||
use std::fs::Permissions;
|
use std::fs::Permissions;
|
||||||
use std::os::unix::fs::PermissionsExt;
|
use std::os::unix::fs::PermissionsExt;
|
||||||
|
|
||||||
@@ -335,7 +335,7 @@ pub(super) fn ensure_dir_permissions(log_directory: &str) -> Result<(), Telemetr
|
|||||||
///
|
///
|
||||||
/// # Returns
|
/// # Returns
|
||||||
/// A [`tokio::task::JoinHandle`] for the spawned cleanup loop.
|
/// A [`tokio::task::JoinHandle`] for the spawned cleanup loop.
|
||||||
pub(super) fn spawn_cleanup_task(
|
pub fn spawn_cleanup_task(
|
||||||
config: &OtelConfig,
|
config: &OtelConfig,
|
||||||
log_directory: &str,
|
log_directory: &str,
|
||||||
log_filename: &str,
|
log_filename: &str,
|
||||||
|
|||||||
Reference in New Issue
Block a user