opengisch / pum

Postgres Upgrades Manager
GNU General Public License v2.0
30 stars 7 forks source link

Check : how do you display diffs ? #7

Closed sylvainbeo closed 7 years ago

sylvainbeo commented 7 years ago

testing the check command, i cannot see the differences, just :+1:

./pum.py check -p1 qwat -p2 qwat_test
Check...DIFFERENCES FOUND

Am i missing a param ?

marioba commented 7 years ago

I missed a param, not you... Now there is a parameter verbose_level in the run_check method.

verbose_level: int
            verbose level, 0 -> print nothing, 1 -> print first 80 char of each
            difference, 2 -> print all the difference details

or via the pum check command in the CLI with the option


 -v VERBOSE_LEVEL, --verbose_level VERBOSE_LEVEL
                        Verbose level (0, 1 or 2)```