Commit 39a8180
authored
Use tt-logger in assert.hpp (#23722)
### Ticket
NA
### Problem description
The assertion macros were logging critical errors ahead of abort /
exception throwing using spdlog directly (default logger).
This means that they were always printing to stdout no matter what, and
we had no option to log to a file.
### What's changed
- Use `tt-logger` logging macros instead.
An earlier version of `tt-logger` was struggling to handle this section
of code, so I side stepped it by directly using spdlog. However, the
latest version of `tt-logger` seems to handle this usage without an
issue.
### Checklist
- [x] [All post
commit](https://github.com/tenstorrent/tt-metal/actions/runs/15736013791)
CI passes
- [x] New/Existing tests provide coverage for changes1 parent fb497a8 commit 39a8180
1 file changed
+2
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 51 | | |
63 | 52 | | |
64 | 53 | | |
| |||
105 | 94 | | |
106 | 95 | | |
107 | 96 | | |
108 | | - | |
109 | | - | |
| 97 | + | |
110 | 98 | | |
111 | 99 | | |
112 | 100 | | |
| |||
116 | 104 | | |
117 | 105 | | |
118 | 106 | | |
119 | | - | |
120 | | - | |
| 107 | + | |
121 | 108 | | |
122 | 109 | | |
123 | 110 | | |
| |||
0 commit comments