added checks if current thread is on test envi or production to track test logs