logger callable null only when mongodb