Skip to content

Commit a9bd00e

Browse files
Fixes for implementation details of CoreLogging which have changed (#9)
1 parent b1c4b0f commit a9bd00e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
strategy:
1414
matrix:
1515
version:
16-
- '1.4'
1716
- '1.6'
17+
- '1.10'
1818
- '1'
1919
- 'nightly'
2020
os:
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
version: ${{ matrix.version }}
4040
arch: ${{ matrix.arch }}
41-
- uses: actions/cache@v1
41+
- uses: actions/cache@v3
4242
env:
4343
cache-name: cache-artifacts
4444
with:

src/LoggingStream.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function Base.unsafe_write(s::LoggingStream, p::Ptr{UInt8}, n::UInt)
3131
#
3232
# NOTE: These refer to internals of CoreLogging and will need to be kept in
3333
# sync if things change upstream.
34-
if #==# level >= Base.CoreLogging._min_enabled_level[] &&
34+
if #==# (VERSION >= v"1.10" ? level.level >= Base.CoreLogging._min_enabled_level[] : level >= Base.CoreLogging._min_enabled_level[]) &&
3535
level >= s.logstate.min_enabled_level &&
3636
Logging.shouldlog(s.logger, level, _module, group, id)
3737
m = (n > 0 && unsafe_load(p, n) == UInt8('\n')) ? n-1 : n

0 commit comments

Comments
 (0)