madeofpendletonwool / PinePods

Pinepods is a complete podcast management system and allows you to play, download, and keep track of podcasts you enjoy. All self hosted and enjoyed on your own server!
https://pinepods.online
GNU General Public License v3.0
187 stars 13 forks source link

Log output from database scripts need improved, they're giving false information #219

Closed boc-the-git closed 1 month ago

boc-the-git commented 1 month ago

Take this for instance: https://github.com/madeofpendletonwool/PinePods/blob/b098f85b034bb8f333e26c76800f8197fc0475bb/startup/setuppostgresdatabase.py#L136-L151

It tells me on every container start that it has created the table, when in fact it hasn't.

Some other examples (not an exhaustive list!): https://github.com/madeofpendletonwool/PinePods/blob/b098f85b034bb8f333e26c76800f8197fc0475bb/startup/setuppostgresdatabase.py#L188-L193

https://github.com/madeofpendletonwool/PinePods/blob/b098f85b034bb8f333e26c76800f8197fc0475bb/startup/setuppostgresdatabase.py#L265

https://github.com/madeofpendletonwool/PinePods/blob/b098f85b034bb8f333e26c76800f8197fc0475bb/startup/setuppostgresdatabase.py#L347-L356

madeofpendletonwool commented 1 month ago

You're absolutely right. Lot of this is leftover remnants from testing. I went ahead and cleaned it all up. Messaged output from startup should be much more clear now in #232. This will release as part of 0.6.4