Join Slack
Powered by
Hello, how can I know in local if I’m in debug mod...
# ktor
r
Raphael TEYSSANDIER
09/12/2022, 2:10 PM
Hello, how can I know in local if I’m in debug mode or not ?
s
Sam
09/12/2022, 2:49 PM
Let me answer with a question: why do you need to know?
a
Aleksei Tirman [JB]
09/12/2022, 3:03 PM
Do you mean when you’re executing a code with a debugger?
r
Raphael TEYSSANDIER
09/12/2022, 3:34 PM
When I test in local, I want print normal logs, but in prod I want custom log
a
Aleksei Tirman [JB]
09/12/2022, 3:35 PM
Can you use an environment variable that will indicate what environment you are in?
☝️ 1
r
Raphael TEYSSANDIER
09/12/2022, 3:50 PM
(I’m a noob in web dev), thank’s I will look into it !
2
Views
Open in Slack
Previous
Next