Skip to content

Commit a0ec17b

Browse files
committed
better logging when running in parallel
1 parent cb7f01e commit a0ec17b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

eval.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
from graph_pattern import GraphPattern
2828
from graph_pattern import canonicalize
2929
from graph_pattern import to_nx_graph
30+
from utils import exception_stack_catcher
31+
from utils import log_all_exceptions
3032

3133
logger = logging.getLogger(__name__)
3234
logger.info('init')
@@ -378,6 +380,8 @@ def pattern_generator(
378380
yield (n_patterns, None)
379381

380382

383+
@log_all_exceptions(logger)
384+
@exception_stack_catcher
381385
def main():
382386
# len | pcon | nej | all | candidates (all) | candidates (all) |
383387
# | | | (canonical) | (old method) | (numerical) |

0 commit comments

Comments
 (0)