- add environment information in some social_log messages - improve automatic checks and output log in patches add function