carnival-data / carnival

JVM property graph data unification framework
https://carnival-data.github.io/carnival/
GNU General Public License v3.0
7 stars 2 forks source link

carnival-util - Log.progress() throws an exception if 'total' is <=0 #10

Closed hjwilli closed 4 years ago

hjwilli commented 4 years ago

This method displays progress information ('current' of 'total' chunks complete). Total = 0 is valid and should not throw an exception.

For negative total value, display a warning instead of throwing an exception.

See https://github.com/pmbb-ibi/carnival/blob/aae4500acaa2f150832812a9d2f6f63397961dc4/app/carnival-util/src/main/groovy/carnival/util/Log.groovy#L39-L42