Try and get a good training on management.
Don’t micro manage, protect your team, those under you need to be able to trust you and look out for them.
Trust in your team and listen to their concerns. Managing people is about creating a positive environment where constructive criticism is welcomed.
On most companies I’ve worked, the team is usually more aware of issues because they are in the trenches. You have to ensure that they have a good enough environment where they feel like they can improve things.
As it is now in my current company, most devs started with a positive attitude and with a big urge to improve things for the wider team (not just their individual projects) and a year later nobody gives a shit about anything because management was not there to shield them from corporate bullshit. Now the work environment is crap and people are already looking to leave.
This is just off the top of my head.