Replaced make shift debugging info by `logging`