Skip to content

Fix traceback formatting #2677

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

Merged

Conversation

RunDevelopment
Copy link
Member

Before:

[0] [2024-03-12 17:57:05 +0100] [5068] [ERROR] [Executor] File C:\DS3TexUp\up-manual-new\CommonEffects-s20025-rgb.png does not exist
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO] Traceback (most recent call last):
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO] File "C:\Users\micha\Git\chaiNNer\backend\src\process.py", line 85, in enforce_inputs
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO] enforced_inputs.append(i.enforce_(value))
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO] File "C:\Users\micha\Git\chaiNNer\backend\src\api\input.py", line 118, in enforce_
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO] return self.enforce(value)
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO] File "C:\Users\micha\Git\chaiNNer\backend\src\nodes\properties\inputs\file_inputs.py", line 61, in enforce
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO] assert value.exists(), f"File {value} does not exist"
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO] AssertionError: File C:\DS3TexUp\up-manual-new\CommonEffects-s20025-rgb.png does not exist
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO]
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO] The above exception was the direct cause of the following exception:
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO]
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO] Traceback (most recent call last):
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO] File ".\server.py", line 260, in run_individual
[0] [2024-03-12 17:57:05 +0100] [5068] [INFO] output = await executor.process_regular_node(node)

After:

[0] [2024-03-12 18:06:56 +0100] [10696] [ERROR] [Worker] File C:\DS3TexUp\up-manual-new\CommonEffects-s00019.png does not exist
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker] Traceback (most recent call last):
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker]   File "C:\Users\micha\Git\chaiNNer\backend\src\process.py", line 85, in enforce_inputs
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker]     enforced_inputs.append(i.enforce_(value))
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker]   File "C:\Users\micha\Git\chaiNNer\backend\src\api\input.py", line 118, in enforce_
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker]     return self.enforce(value)
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker]   File "C:\Users\micha\Git\chaiNNer\backend\src\nodes\properties\inputs\file_inputs.py", line 61, in enforce
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker]     assert value.exists(), f"File {value} does not exist"
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker] AssertionError: File C:\DS3TexUp\up-manual-new\CommonEffects-s00019.png does not exist
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker]
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker] The above exception was the direct cause of the following exception:
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker]
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker] Traceback (most recent call last):
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker]   File ".\server.py", line 260, in run_individual
[0] [2024-03-12 18:06:56 +0100] [10696] [INFO] [Worker]     output = await executor.process_regular_node(node)

@joeyballentine joeyballentine merged commit e2a230c into chaiNNer-org:main Mar 12, 2024
@RunDevelopment RunDevelopment deleted the fix-trace-back-formatting branch March 12, 2024 18:16
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.

2 participants