Hi team.. while running the workflow in the local ...
# flyte-support
l
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
f
just say skip
🙂
the token can be empty
there is some work in progress to fetch the logs in a separate service
l
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 😞
a
do you see any logs in the console for the workflow execution?
l
which console? I went to node->executions->K8s logs
I see nothing other than the stack backtrace
a
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!
l
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
a
@little-cricket-84530 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?
f
ohh Rupsha you are running Flyte demo on a remote machine right
l
I am in the correct namespace
f
then you will have to port forward or change the endpoint
l
@freezing-airport-6809 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
@acceptable-policeman-57188 I do see all the pods
looks like ONLY error logs show up.. not info
a
l
where should I set this?
a
I believe in the container definition cc @high-accountant-32689
h
correct. @little-cricket-84530, can you set that env var to
20
?
l
so in the dockerfile I set
ENV LOGGING_ENV_VAR 20
?
or is it
FLYTE_SDK_LOGGING_LEVEL
?
h
FLYTE_SDK_LOGGING_LEVEL
l
thanks
👍 1
166 Views