Skip to content

Commit

Permalink
Adjust naming of Dart config public API
Browse files Browse the repository at this point in the history
  • Loading branch information
jerel committed Aug 24, 2023
1 parent 87b426e commit 419974b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions membrane/src/generators/loaders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ _load() {{
'store_dart_post_cobject',
);
{logger}.{debug_logger}('Initializing Dart_PostCObject');
{logger}.{fine_logger}('Initializing Dart_PostCObject');
storeDartPostCobject(NativeApi.postCObject);
final ptr = bindings.membrane_metadata_version();
Expand All @@ -77,7 +77,7 @@ final bindings = _load();
logger_path = dart_config.logger_import_path,
logger = dart_config.logger,
info_logger = dart_config.info_log_fn,
debug_logger = dart_config.debug_log_fn,
fine_logger = dart_config.fine_log_fn,
)
}

Expand Down
12 changes: 6 additions & 6 deletions membrane/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ use tracing::{debug, info, warn};

#[derive(Debug)]
pub struct DartConfig {
logger_import_path: &'static str,
logger: &'static str,
info_log_fn: &'static str,
debug_log_fn: &'static str,
pub logger_import_path: &'static str,
pub logger: &'static str,
pub info_log_fn: &'static str,
pub fine_log_fn: &'static str,
}

impl Default for DartConfig {
Expand All @@ -119,7 +119,7 @@ impl Default for DartConfig {
logger_import_path: "package:logging/logging.dart",
logger: "Logger('membrane')",
info_log_fn: "info",
debug_log_fn: "fine",
fine_log_fn: "fine",
}
}
}
Expand Down Expand Up @@ -570,7 +570,7 @@ impl<'a> Membrane {
/// logger_import_path: "package:logging/logging.dart",
/// logger: "Logger('membrane')",
/// info_log_fn: "info",
/// debug_log_fn: "fine",
/// fine_log_fn: "fine",
/// }
pub fn dart_config(&mut self, config: DartConfig) -> &mut Self {
return_if_error!(self);
Expand Down

0 comments on commit 419974b

Please sign in to comment.