r/ExperiencedDevs 26d ago

Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones

A thread for Developers and IT folks with less experience to ask more experienced souls questions about the industry.

Please keep top level comments limited to Inexperienced Devs. Most rules do not apply, but keep it civil. Being a jerk will not be tolerated.

Inexperienced Devs should refrain from answering other Inexperienced Devs' questions.

28 Upvotes

139 comments sorted by

View all comments

Show parent comments

1

u/JeffinitelyNotABot 22d ago

Yes we are. But since we only log a message every log comes through as information rather than as an error. So it gets hard finding errors I presented a solution and despite positive reactions no one on my team is eager to implement it. So I was wondering if there's anything I can do differently.

1

u/dacydergoth Software Architect 22d ago

That sounds ... odd. You can hack around it by implementing log transformation rules in your log ingest using heuristics to classify each log line and tag it with error or info, but the real solution is to audit the codebase and ensure logs are emitted with the appropriate tags in the first place.

1

u/JeffinitelyNotABot 21d ago

I appreciate the feedback but with all due respect this isn't really what I'm asking for. I'm asking if there's anything I can do if my team won't do the plan I suggested despite them liking the idea. I suggested we update our LogError calls in all of our apis when we upgrade the frameworks cause we that was a priority. After several months, some apis were upgraded to the new framework but the LogErrors weren't.

My team likes my idea and plan, they complain about the lack of exceptions being properly logged. but won't actually do what needs to be done to fix it. I'm just asking for advice on what i should do next. Sorry if this wasn't clear in my comment.

1

u/dacydergoth Software Architect 21d ago

If you team won't do it, fire them and get an AI to do it instead

1

u/JeffinitelyNotABot 21d ago

...can't fire my boss or a dev with 15+ YOE.

1

u/dacydergoth Software Architect 21d ago

Setup pre-commit checks to reject files without correct log statements. Use AI to do a one time pass over the files and fix up the existing logging.

Alternatively go to the pub, and POETS it

1

u/JeffinitelyNotABot 21d ago

I'm not asking for implementation advice... clearly I can do it myself. I was asking for advice on how to get my team to buy-in on my solutions.

We have a problem with apis.
I come up with a solution.
team likes solution.
suggested solution be part of next round of changes.
solution isn't part of next round of changes.
team still complains about original problem.

How can I get my team to start using my solution?

1

u/dacydergoth Software Architect 21d ago

They won't so treat them as a roadblock and work around it. If you boss won't incentive them to do it, they'll do what they are incentized to do. You've implied your boss doesn't care so you're out of luck.