Skip to content

Commit

Permalink
remove debug logging for the TOML cache in loading (#40581)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Apr 26, 2021
1 parent 728aa90 commit c82c701
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ function get_updated_dict(p::TOML.Parser, f::CachedTOMLDict)
f.mtime = s.mtime
f.size = s.size
f.hash = new_hash
@debug "Cache of TOML file $(repr(f.path)) invalid, reparsing..."
TOML.reinit!(p, String(content); filepath=f.path)
return f.d = TOML.parse(p)
end
Expand All @@ -222,7 +221,6 @@ parsed_toml(project_file::AbstractString) = parsed_toml(project_file, TOML_CACHE
function parsed_toml(project_file::AbstractString, toml_cache::TOMLCache, toml_lock::ReentrantLock)
lock(toml_lock) do
if !haskey(toml_cache.d, project_file)
@debug "Creating new cache for $(repr(project_file))"
d = CachedTOMLDict(toml_cache.p, project_file)
toml_cache.d[project_file] = d
return d.d
Expand Down

0 comments on commit c82c701

Please sign in to comment.