Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to delete logs #4297

Open
Gluepower opened this issue Oct 27, 2024 · 1 comment
Open

How to delete logs #4297

Gluepower opened this issue Oct 27, 2024 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@Gluepower
Copy link

Bug Description

I have a flow with 1000 logs and logging stopped. How to continue logging for that flow or how to delete old logs so new ones can be created?

Reproduction

Create 1000 logs, and logging stops

Expected behavior

Logging should continue after 1000 logs

Who can help?

No response

Operating System

Render

Langflow Version

1.0.19.post2

Python Version

3.12

Screenshot

image

Flow File

No response

@Gluepower Gluepower added the bug Something isn't working label Oct 27, 2024
Copy link

dosubot bot commented Oct 27, 2024

To manage the logging behavior in Langflow version 1.0.19.post2, you can set the environment variable LANGFLOW_LOG_RETRIEVER_BUFFER_SIZE to control the number of logs stored. By setting this variable to 1000 or any other desired size, you can ensure that the SizedLogBuffer class maintains a buffer of up to that number of logs. When the buffer reaches this size, it will automatically remove the oldest logs to make space for new ones, allowing continuous logging without manual intervention.

Here's how you can set the environment variable:

export LANGFLOW_LOG_RETRIEVER_BUFFER_SIZE=1000

This will help you continue logging by automatically deleting old logs once the buffer size is reached [1].

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the question Further information is requested label Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant