hi, i have a flow that interacts with a library th...
# ask-community
i
hi, i have a flow that interacts with a library that my team built for storing/indexing data. i added some additional logs in that library and in my
pyproject.toml
have a git dependency pointing to that test branch. after building the image with this new version of the library, registering the flow with that image, running the flow doesn’t display any of the additional logs i have another project where i’m doing the same thing. the flows in that project do log the additional messages. i’m not sure if this might be the way i configured prefect/how i’m registering the flows. has anyone ever encountered this problem or have encountered something similar? also please let me know if i was unclear about anything. thank you!
k
Hi @Irvin Tang, maybe you need to add them as extra loggers? Have you seen these docs?
i
i believe i have that. in the job template i’m using for this flow, i have this:
Copy code
apiVersion: batch/v1
kind: Job
spec:
  template:
    spec:
      containers:
        - name: flow
          env:
            - name: PREFECT__LOGGING__EXTRA_LOGGERS
              value: "['my_library']"
also logs from the library don’t have trouble printing.
k
Maybe you need to set the
imagePullPolicy
to
Always
in the
KubernetesRun
. The default is
IfNotPresent
so maybe you’re not pulling the updated image? Example here
👍 1
i
thanks i’ll check that out