Hi team.. while running the workflow in the local ...
# ask-the-community
r
Hi team.. while running the workflow in the local sandbox, is there a way to view the k8s logs? The k8s dashboard asks for a token or a config
k
just say skip
🙂
the token can be empty
there is some work in progress to fetch the logs in a separate service
r
ah!
I still don't see anything logged using python's logging library
Looks like I may need to use _`flytekit.current_context().logging` ?_
Still no logs 😞
k
do you see any logs in the console for the workflow execution?
r
which console? I went to node->executions->K8s logs
I see nothing other than the stack backtrace
k
if you're running demo it should be available here: http://localhost:30080/console
when you use pyflyte run, it will output a link to the execution as well!
r
oh that console.. yes I'm looking at the console
when I click on view logs for failed task it opens the pane on the right. I click k8s logs but I don't see any of the actual logs
other than the stack trace from the failure
k
@Rupsha Chaudhuri when you click k8s logs and it takes you to the kubernetes console can you change the namespace to
flytesnacks-development
(or whatever corresponds to the <project>-<domain> you ran your workflow under) and see if there are pods there that correspond to your execution id?
k
ohh Rupsha you are running Flyte demo on a remote machine right
r
I am in the correct namespace
k
then you will have to port forward or change the endpoint
r
@Ketan (kumare3) I'm running locally
This is what the url looks like
And the only thing I see is the stack trace
none of the info logs
@katrina I do see all the pods
looks like ONLY error logs show up.. not info
k
r
where should I set this?
k
I believe in the container definition cc @Eduardo Apolinario (eapolinario)
e
correct. @Rupsha Chaudhuri, can you set that env var to
20
?
r
so in the dockerfile I set
ENV LOGGING_ENV_VAR 20
?
or is it
FLYTE_SDK_LOGGING_LEVEL
?
e
FLYTE_SDK_LOGGING_LEVEL
r
thanks
👍 1
164 Views