chg: Refactor configuration-related code
move code into a new function for loading and transferring data to different fields. Also improve logging with logrus by using fields and .WithError
functions
Edited by Jorge Javier Araya Navarro
move code into a new function for loading and transferring data to different fields. Also improve logging with logrus by using fields and .WithError
functions