Abas jama
Abas jama

Reputation: 7

Spring boot intelij won't show Logger in console & intelij won't show any errors (switched from windows to Mac)

Switched from windows to MacOs and 1. i can't run intelij from any class anymore instead I need to run it from the main application(which I'm not sure how and why that is the case now) . 2. my logger does not show in the console for controller or any other class except the main class.

enter image description here

so my thing is that now I have switched to. MacOs and as you saw in my login endpoint(above) I had a logger which logged the dto the user sent in the request, the method gets executed as a generated jwt is sent back to the client successfully as I checked the console to confirm and stored it in the local storage. however I was testing out to see if anything would actually log. It didn't even though we enter the function and call the service class. So my logger somehow doesn't show in the console, however when i tried in my windows pc it does (the Image below shoes my current console).

In the main application I wrote 'DormlyApplication started', this is present however my controller logger or print statement dont show up even though the function executes correctly. I Had no issue with this during WindowsOS however since I switched to Mac yesterday I ran into these issues.

enter image description here

Also another error I'd like to add is that I for some reason don't see any spring exceptions, for instance when I run my code I got an error which was 'Request part file is not present' but in my intelij now I can't see it for some reason. I was expecting to see this exception in the console as I didn't change my code one bit.

should I uninstall and reinstall IntelliJ again?

Upvotes: -1

Views: 29

Answers (0)

Related Questions