Skip to content

Commit 0cf8d13

Browse files
zdevitometa-codesync[bot]
authored andcommitted
Fix instances where report is not a string. (#1776)
Summary: Pull Request resolved: #1776 This can happen sometimes. Use string formatting so it gets converted. Reviewed By: colin2328 Differential Revision: D86540593 fbshipit-source-id: 42f3dc51d6674b8b4c71409d19e8c2db1047ac81
1 parent 2bd9c40 commit 0cf8d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/monarch/_src/actor/actor_mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def filter(self, record: Any) -> bool:
274274
fn = _monarch_actor().per_actor_logging_prefix
275275
ctx = _context.get(None)
276276
if ctx is not None and fn is not None:
277-
record.msg = fn(ctx.actor_instance) + record.msg
277+
record.msg = f"{fn(ctx.actor_instance)}{record.msg}"
278278
return True
279279

280280

0 commit comments

Comments
 (0)