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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small logger issue #95

Open
TomWagg opened this issue Aug 23, 2022 · 0 comments
Open

Small logger issue #95

TomWagg opened this issue Aug 23, 2022 · 0 comments

Comments

@TomWagg
Copy link

TomWagg commented Aug 23, 2022

Hey @moeyensj 馃檪 It looks like there's maybe a small issue with the logger when generating ephemerides times out?

For reference I am currently using v1.1 of Thor. Here's the most relevant part of the traceback and I'll copy the whole thing below.

File "/astro/users/tomwagg/.conda/envs/neocp/lib/python3.9/site-packages/thor/backend/backend.py", line 61, in ephemeris_worker
    logger.CRITICAL("Ephemeris generation timed out on orbit IDs (showing first 5): {}".format(orbits.ids[:5]))
AttributeError: 'Logger' object has no attribute 'CRITICAL'

Let me know if you need more info. Whole trackback below

---------------------------------------------------------------------------
RemoteTraceback                           Traceback (most recent call last)
RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/astro/users/tomwagg/.conda/envs/neocp/lib/python3.9/site-packages/thor/backend/backend.py", line 59, in ephemeris_worker
    ephemeris = backend._generateEphemeris(orbits, observers)
  File "/astro/users/tomwagg/.conda/envs/neocp/lib/python3.9/site-packages/thor/backend/pyoorb.py", line 463, in _generateEphemeris
    ephemeris, err = oo.pyoorb.oorb_ephemeris_full(
  File "/astro/users/tomwagg/.conda/envs/neocp/lib/python3.9/site-packages/thor/backend/backend.py", line 32, in handle_timeout
    raise TimeoutError(self.error_message)
TimeoutError: Timeout

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/astro/users/tomwagg/.conda/envs/neocp/lib/python3.9/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/astro/users/tomwagg/.conda/envs/neocp/lib/python3.9/multiprocessing/pool.py", line 51, in starmapstar
    return list(itertools.starmap(args[0], args[1]))
  File "/astro/users/tomwagg/.conda/envs/neocp/lib/python3.9/site-packages/thor/backend/backend.py", line 61, in ephemeris_worker
    logger.CRITICAL("Ephemeris generation timed out on orbit IDs (showing first 5): {}".format(orbits.ids[:5]))
AttributeError: 'Logger' object has no attribute 'CRITICAL'
"""
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

No branches or pull requests

1 participant