public static Db displayLogs(Db db) { //Function to display error logs try { LogModule.showErrorLog(db.errorlog); }catch (Exception ex) { db.errorlog = LogModule.insertErrorLog(db.errorlog, ex.ToString(), "Display Logs"); } return(db); }