SyncEngine: Log for an assert, return -1 for nondebug compile