@@ -39,15 +39,15 @@ fn config_paths() -> (std::path::PathBuf, Option<std::path::PathBuf>) {
3939 let args = Args :: parse ( ) ;
4040 if !args. config . exists ( ) {
4141 println ! (
42- "Error, config file not found at {:?}" ,
42+ "ERROR: config file not found at {:?}" ,
4343 args. config. as_path( )
4444 ) ;
4545 exit ( 1 )
4646 }
4747 if let Some ( ref metric_path) = args. metrics_config {
4848 if !metric_path. exists ( ) {
4949 println ! (
50- "Error, metrics config file not found at {:?}" ,
50+ "ERROR: metrics config file not found at {:?}" ,
5151 metric_path. as_path( )
5252 ) ;
5353 exit ( 1 )
@@ -57,17 +57,17 @@ fn config_paths() -> (std::path::PathBuf, Option<std::path::PathBuf>) {
5757}
5858
5959async fn run_services ( config : & ' static IngestorConfig ) {
60- println ! ( "Starting log ingestor with config: \n {:?}" , & config) ;
60+ println ! ( "INFO: Starting log ingestor with config: \n {:?}" , & config) ;
6161
6262 let metrics = if config. enable_metrics {
63- println ! ( "Starting metrics task..." ) ;
63+ println ! ( "DEBUG: Starting metrics task..." ) ;
6464 tokio:: spawn ( metrics_loop ( config) )
6565 } else {
6666 tokio:: spawn ( futures:: future:: ready ( ( ) ) )
6767 } ;
6868
6969 if config. enable_logging {
70- println ! ( "Starting log ingestor task..." ) ;
70+ println ! ( "DEBUG: Starting log ingestor task..." ) ;
7171 let ( tx, mut rx) = mpsc:: unbounded_channel :: < LogMsg > ( ) ;
7272 let producer = tokio:: spawn ( producer_loop ( tx, config) ) ;
7373 consumer_loop ( & mut rx, config) . await ;
@@ -84,6 +84,6 @@ async fn main() {
8484 let config = Box :: leak ( Box :: new ( assemble_config ( config_paths ( ) ) ) ) ;
8585 rustls:: crypto:: aws_lc_rs:: default_provider ( )
8686 . install_default ( )
87- . expect ( "Failed to install rustls crypto provider" ) ;
87+ . expect ( "ERROR: Failed to install rustls crypto provider" ) ;
8888 run_services ( config) . await
8989}
0 commit comments