Don't write log on console in release mode #834