fix: fix github action error caused by oltp modification (#2163)

Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
majinghe
2026-03-14 22:15:35 +08:00
committed by GitHub
parent afcaaf66fc
commit f66a90c1b2

View File

@@ -286,7 +286,7 @@ fn init_file_logging_internal(
/// This prevents world-writable log directories from being a security hazard.
/// No-ops if permissions are already `0755` or stricter.
#[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::os::unix::fs::PermissionsExt;
@@ -335,7 +335,7 @@ pub(super) fn ensure_dir_permissions(log_directory: &str) -> Result<(), Telemetr
///
/// # Returns
/// A [`tokio::task::JoinHandle`] for the spawned cleanup loop.
pub(super) fn spawn_cleanup_task(
pub fn spawn_cleanup_task(
config: &OtelConfig,
log_directory: &str,
log_filename: &str,