pub fn try_persist_app_error( kind: &str, code: i32, msg: &str, detail: Option<&str>, )
异步写入 AppError 到 MySQL(dev only)