fix disabling writing log to stdout