added env logging