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

[Bug]: CLI does not write log files #7736

Open
1 task done
happyherp opened this issue Apr 7, 2025 · 0 comments
Open
1 task done

[Bug]: CLI does not write log files #7736

happyherp opened this issue Apr 7, 2025 · 0 comments
Labels
bug Something isn't working CLI Related to the command line interface

Comments

@happyherp
Copy link
Contributor

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

I start the CLI through VSCode with

 {
            "name": "OpenHands CLI",
            "type": "debugpy",
            "request": "launch",
            "module": "openhands.core.cli",
            "justMyCode": false,
            "env": {
                "DEBUG": "1"
            }
        },

I see the logging start up and then it switches to CLI Mode

10:59:21 - openhands:DEBUG: logger.py:374 - Logging initialized
10:59:21 - openhands:DEBUG: logger.py:386 - Logging to file in: /home/ubuntu/projects/MyOpenHands/logs
2025-04-07 10:59 - openhands_aci:DEBUG - Logger initialized
2025-04-07 10:59 - openhands_aci.editor.file_cache:DEBUG - Current size updated: 0
2025-04-07 10:59 - openhands_aci.editor.file_cache:DEBUG - FileCache initialized with directory: /tmp/oh_editor_history_4qnwjk5f, size_limit: None, current_size: 0
🤖 Session ID: 1ffc51f3-17f1-4fc0-8ae8-528448b05586

An error occurred: Unknown condenser config: type='agentcache' max_size=100 trigger_word='!CONDENSE!'

So I find the file logs/openhands_2025-04-07.log

10:59:21 - openhands:DEBUG: logger.py:386 - Logging to file in: /home/ubuntu/projects/MyOpenHands/logs

Which is not helpful.
It looks like something between

10:59:21 - openhands:DEBUG: logger.py:386 - Logging to file in: /home/ubuntu/projects/MyOpenHands/logs
2025-04-07 10:59 - openhands_aci:DEBUG - Logger initialized

Changes the logging(note the different logging-style) which probably also stops logging to the file.

OpenHands Installation

Development workflow

OpenHands Version

main at 9b8a628

Operating System

WSL on Windows

Logs, Errors, Screenshots, and Additional Context

Image

@happyherp happyherp added the bug Something isn't working label Apr 7, 2025
@mamoodi mamoodi added the CLI Related to the command line interface label Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CLI Related to the command line interface
Projects
None yet
Development

No branches or pull requests

2 participants