[jmdb] Fixing bug with the logging