If I use debug flag it tries to write logs into existing stdout (do not exist in react-native)  