fetch the user enviroment when uploadlog
Merge pull request #4281 from qunox/enviromentupload

fetch the user enviroment when uploadlog