mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
add: logging for errors.
This commit is contained in:
parent
eb1d4c68ea
commit
d34635becb
1 changed files with 6 additions and 0 deletions
|
|
@ -332,7 +332,13 @@ class Migrations extends Action
|
||||||
$migration->getAttribute('resourceId'),
|
$migration->getAttribute('resourceId'),
|
||||||
$migration->getAttribute('resourceType')
|
$migration->getAttribute('resourceType')
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
Console::log(json_encode([
|
||||||
|
'stage' => 'source#errors',
|
||||||
|
'errors' => $source->getErrors(),
|
||||||
|
], JSON_PRETTY_PRINT));
|
||||||
}
|
}
|
||||||
|
|
||||||
$destination->shutDown();
|
$destination->shutDown();
|
||||||
$source->shutDown();
|
$source->shutDown();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue