luminus

ScArcher 2020-03-06T04:32:47.013500Z

I don't have the context of the question, but it's probably to avoid storing passwords in source control. Also if you're working on a team, every dev may have some different configuration relative to their system. (let me know if I'm way off with this answer)

sudakatux 2020-03-06T11:37:16.013700Z

Hi

sudakatux 2020-03-06T11:38:50.014500Z

So when you get an exception. how does one see the exception. im looking for the logs etc but i cant find how to get the details of the exception

bibiki 2020-03-06T12:04:26.014700Z

do you have an example you'd like to go through together?

sudakatux 2020-03-06T12:09:45.014900Z

so im following the book

sudakatux 2020-03-06T12:10:07.015100Z

you get the swagger part

sudakatux 2020-03-06T12:10:25.015300Z

if i miss something swagger says 500 Exception

sudakatux 2020-03-06T12:10:43.015500Z

now say i want to see the trace for that exception so i can look into what happened

sudakatux 2020-03-06T12:11:03.015700Z

how can i get that printed to the log?

sudakatux 2020-03-06T12:12:20.015900Z

I already figured out what the problem was. However i would like to know how i can get exceptions printed either in the repl or even better to the log file

bibiki 2020-03-06T12:14:34.016100Z

ok, I see what you mean. but I cannot imagine why you would not see exception in repl.

bibiki 2020-03-06T12:15:13.016300Z

I mean, when using "lein repl" the config is there for you, and it should just work... not like you have to do something for that

bibiki 2020-03-06T12:17:04.016500Z

there is the log directory at the root of the project, do you not have that

sudakatux 2020-03-06T12:18:19.016700Z

yeah. but the exception didnt get printed

bibiki 2020-03-06T12:18:24.016900Z

and your log config file is env/dev/resources/logback.xml

sudakatux 2020-03-06T12:18:44.017100Z

ahh cool

bibiki 2020-03-06T12:19:18.017300Z

500 is internal server exception. I guess it is not being caught and therefore not printed out

sudakatux 2020-03-06T12:19:36.017500Z

makes sense

sudakatux 2020-03-06T12:20:05.017700Z

thanks