Skip to content

Commit

Permalink
Improve messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
orenbenkiki committed Apr 11, 2024
1 parent b33b302 commit 0f4a2ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/v0.1.0/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-04-11T10:54:13","documenter_version":"1.3.0"}}
{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-04-11T20:04:29","documenter_version":"1.3.0"}}
8 changes: 8 additions & 0 deletions src/generic_logging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ module GenericLogging
export @logged
export setup_logger

using Base.Threads
using Daf.GenericTypes
using Daf.Messages
using Dates
using Distributed
using ExprTools
using Logging

Expand Down Expand Up @@ -156,6 +158,12 @@ function metafmt( # untested
if show_time
push!(prefix_parts, Dates.format(now(), "yyyy-mm-dd HH:MM:SS.sss"))
end
if nprocs() > 1
push!(prefix_parts, "P$(myid())") # untested
end
if nthreads() > 1
push!(prefix_parts, "T$(threadid())")
end
push!(prefix_parts, string(level == Warn ? "Warning" : string(level)))
if show_module
push!(prefix_parts, string(_module))
Expand Down
4 changes: 4 additions & 0 deletions src/matrix_layouts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ function major_axis(::AbstractSparseMatrix)::Maybe{Int8}
return Columns
end

function major_axis(::BitMatrix)::Maybe{Int8} # untested
return Columns
end

function major_axis(matrix::AbstractMatrix)::Maybe{Int8}
try
matrix_strides = strides(matrix)
Expand Down

0 comments on commit 0f4a2ff

Please sign in to comment.