Correction du bug append
Adding debug logging
Add debug log messages