Skip to content

Changed the logs output using tee command#122

Open
rai-pranav wants to merge 1 commit intomasterfrom
detailed_logs
Open

Changed the logs output using tee command#122
rai-pranav wants to merge 1 commit intomasterfrom
detailed_logs

Conversation

@rai-pranav
Copy link

Hi @k1o0
I made the changes we discussed last week for the detailed logs on whiterussian.

I saw the logs on whiterussian, and the tail of the report_create_jobs.log looks like the following.

2026-03-02 10:43:21 INFO     local_server.py:117  creating session for /mnt/s0/Data/Subjects/SP066/2025-06-04/001
2026-03-02 10:43:22 ERROR    local_server.py:138  Failed to register session SP066/2025-06-04/001:
Traceback (most recent call last):
  File "/home/ibladmin/Documents/PYTHON/envs/iblenv/lib/python3.12/site-packages/ibllib/pipes/local_server.py", line 122, in job_creator
    rc.register_session(session_path, file_list=False)
  File "/home/ibladmin/Documents/PYTHON/envs/iblenv/lib/python3.12/site-packages/ibllib/oneibl/registration.py", line 241, in register_session
    assert len(session) != 0, 'no session on Alyx and no tasks in experiment description'
           ^^^^^^^^^^^^^^^^^
AssertionError: no session on Alyx and no tasks in experiment description

2026-03-02 10:43:22 INFO     report_create_jobs.py:57   Ran job creator.
2026-03-02 10:43:22 INFO     tasks.py:270  Job <class '__main__.JobCreator'> complete
2026-03-02 10:43:22 INFO     tasks.py:294  N outputs: 0
2026-03-02 10:43:22 INFO     tasks.py:295  --- 34.415974617004395 seconds run-time ---

And with the current change all these logs along with the small_job logs will be appended to other_jobs.log file.

And from what I understand these changes will be propogated to all the local servers and not just whiterussian.

Is this what we wanted?

@rai-pranav rai-pranav requested a review from k1o0 March 2, 2026 10:58
@rai-pranav rai-pranav self-assigned this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant