Add debug log with environment