Skip to content

Commit a80f12f

Browse files
committed
Fixes smaller logging tests
1 parent f3d20e7 commit a80f12f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/core/job.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function log_job_options(options::JobOptions)
188188
msg *= msg_path("root path", options.root; continuation_label=" ")
189189
msg *= msg_export_fields(options.fields)
190190
else
191-
msg *= msg_qty("export allowed", options.export_allowed)
191+
msg *= msg_qty("export allowed", "false")
192192
end
193193
log_it(options, msg)
194194
return nothing

src/discretization/bond_system.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,9 @@ end
387387

388388
function log_material(mat::M; indentation::Int=2) where {M<:AbstractBondSystemMaterial}
389389
msg = msg_qty("material type", nameof(M); indentation)
390-
msg *= msg_qty("correction type", correction_type(mat); indentation)
390+
if !(correction_type(mat) <: Nothing)
391+
msg *= msg_qty("correction type", correction_type(mat); indentation)
392+
end
391393
for prop in fieldnames(M)
392394
msg *= log_material_property(Val(prop), mat; indentation)
393395
end

0 commit comments

Comments
 (0)