You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my linux machine runMigrationSilently just returns an empty lists and still prints everything to <wherever I log it>.
The code uses capture_ from silently, which tries to capture a handle output, writes it to a temp file and reads that file back again. That’s quite a brittle hack! And probably completely unnecessary …
I think it’s a good function to have, but it should not try to capture from the output handle, rather use internal data structures and return them instead of printing.
Activity
gregwebs commentedon Dec 18, 2016
I presume you mean
runMigrationSilent. I don't know how it could return an empty list if there was a migration to apply.Do you want this function to be deprecated?
Profpatsch commentedon Dec 19, 2016
I think it’s a good function to have, but it should not try to capture from the output handle, rather use internal data structures and return them instead of printing.
Add safer *Quiet variations of runMigrationSilent
Add Quiet variants of runMigration, functioning as workaround for the…
parsonsmatt commentedon Oct 11, 2019
Fixed by #971