AutomationDev85 opened a new pull request, #65412:
URL: https://github.com/apache/airflow/pull/65412

   # Overview
   
   During testing for the Airflow 3.2.1 release, we found a logging 
configuration issue while setting up a Wasp remote logger.
   
   The following error is raised at startup:
   
   ```
   Unable to load the config, contains a configuration error.                   
                                                                                
                                                                                
   Traceback (most recent call last):                                           
                                                                                
                                                                                
     File "/usr/python/lib/python3.12/logging/config.py", line 608, in 
configure                                                                       
                                                                                
         
       handler = self.configure_handler(handlers[name])                         
                                                                                
                                                                                
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                         
                                                                                
                                                                                
     File "/usr/python/lib/python3.12/logging/config.py", line 876, in 
configure_handler                                                               
                                                                                
         
       result = factory(**kwargs)                                               
                                                                                
                                                                                
                ^^^^^^^^^^^^^^^^^                                               
                                                                                
                                                                                
   TypeError: FileTaskHandler.__init__() got an unexpected keyword argument 
'remote_base' 
   ```
   
   After investigating the root cause we found that PR 
https://github.com/apache/airflow/pull/64832 introduced a new _handler_kwargs 
variable which "replace" the usage of the remote_task_handler_kwargs variable. 
   
   However, near the end of the file, DEFAULT_LOGGING_CONFIG is still 
initialized using remote_task_handler_kwargs instead of _handler_kwargs.
   
   
   # Details of change:
   
   * Initialize DEFAULT_LOGGING_CONFIG["handlers"]["task"] using the correct 
handler kwargs so the task handler receives matching parameters.
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to