Mark Allen
1101906090
Avoid persistent_term for OTP < 21
4 vuotta sitten
Evan Vigil-McClanahan
efaea270e1
add a pterm formatter
4 vuotta sitten
Andrew Thompson
d68f066fae
Try to use the new persistent term module instead of ETS in lager_config ( #491 )
5 vuotta sitten
macpie
6b75f9b8a8
Metadata whitelist
5 vuotta sitten
Mark Allen
22e62f28e5
Roll 3.8.0
5 vuotta sitten
Mark Allen
fc6221c92c
Fixup
5 vuotta sitten
Luke Bakken
c88d5d5666
Add tests that show ~t format modifier is necessary for unicode file paths
5 vuotta sitten
Luke Bakken
f47a8be9a6
Add t to string formatting to accept unicode file and dir names
5 vuotta sitten
Luke Bakken
e2e748f86f
Ensure that all calls to rotate a log file are preceded by closing the FDs associated with it
5 vuotta sitten
Luke Bakken
4ed9b558ac
Remove TODO and add a second file:close due to delayed write
5 vuotta sitten
Luke Bakken
0979fd7079
Skip one test that will fail on win32
5 vuotta sitten
Luke Bakken
d25eee4ac6
Skip more tests that will fail on win32
5 vuotta sitten
Luke Bakken
9f5fcf81a8
Skip two tests that will fail on win32
5 vuotta sitten
Luke Bakken
003a50fd31
Check rval with assertEqual
5 vuotta sitten
Luke Bakken
8b94200328
Move test util functions into TEST section of lager_util
5 vuotta sitten
Luke Bakken
d45849a545
Fix lager_rotator_default tests on win32
5 vuotta sitten
Luke Bakken
b069aeaac8
Fixed tests in lager_crash_log on win32
5 vuotta sitten
Luke Bakken
cd5f69dafe
Factor out common code into lager_util:has_file_changed
5 vuotta sitten
Luke Bakken
62e847acaa
Add inode check to write_should_check
5 vuotta sitten
Luke Bakken
3e9e4eb3d1
Write test files using 1 second creation time in the future, lager_file_backend suite passes on win32
5 vuotta sitten
Luke Bakken
0bc318cfd1
Ensure creation time is updated on win32 when files are created
5 vuotta sitten
Luke Bakken
c7d7fce951
Fix test in lager_file_backend with exception for win32
5 vuotta sitten
Luke Bakken
439e82c40f
Take a file ctime into account when write/4 is called
5 vuotta sitten
Luke Bakken
7bb09880cd
Refactor lager_rotator_behaviour to return a files ctime value, which is necessary for detecting changes on win32
5 vuotta sitten
Luke Bakken
39c1248f96
Fix "Internal rotation and delayed write" test on win32
5 vuotta sitten
Luke Bakken
ecb0f8c3cf
Fix a couple more win32 test issues in lager_file_backend
5 vuotta sitten
Luke Bakken
3267b9861d
All but one lager_file_backend test passes on win32
5 vuotta sitten
Luke Bakken
990210faa9
Making progress on getting lager_file_backend tests passing on win32
5 vuotta sitten
Luke Bakken
a4ceb21b38
Fix rotate_file_fail_test on win32
5 vuotta sitten
Luke Bakken
f03fa288d0
Remove code causing some warnings
5 vuotta sitten
Mark Allen
27a075b0c4
Roll 3.7.0
6 vuotta sitten
Viktor Gergely
0fbda11b68
Prepare for Erlang/OTP 22
6 vuotta sitten
Viktor Gergely
a48a90bca4
Fix dialyzer errors
6 vuotta sitten
Mark Allen
4ffdf0dbef
Roll 3.6.10
6 vuotta sitten
Luke Bakken
7549c85416
Fix test
Retry strategy for flaky tests
6 vuotta sitten
Lajos Gerecs
4680b7f8eb
Fix for incorrectly counting dropped messages
Lager changes the error level of supervisor progress messages from
info to debug. This is done after the hwm checking changes the received
message count. This PR implements a fix by removing one from the count
if no message was sent.
Closes : #496
6 vuotta sitten
Andrew Thompson
b19a180dc1
Roll 3.6.9
6 vuotta sitten
Luke Bakken
3a4085d719
Fix log rotation on Windows / non-Unix OSes
Windows requires that file handles be closed prior to renaming files. In
addition, the inode on non-Unix OSes is always zero. This PR closes the
log files prior to rotation (instead of after) and ensures the case
where the file descriptor is `undefined` is handled.
6 vuotta sitten
Mark Allen
1c0ab772df
Roll 3.6.8
6 vuotta sitten
Mark Allen
9f8d7a705e
Maybe remove OTP 21 logger default handler
Closes #481
6 vuotta sitten
Led
9b3df0b51f
lager_trunc_io: clean up unneeded check for erlang:is_map/1
6 vuotta sitten
Grigory Starinkin
5cbc1260fc
Handle errors generated by cowboy which were treated as ranch errors
c998673eb0/src/cowboy_stream_h.erl (L153-L157)
6 vuotta sitten
Andrew Thompson
69b4ada234
Roll 3.6.7
6 vuotta sitten
Andrew Thompson
f94412dc98
Improve debug tracing support
By an unhappy accident, OTP21 added functionality for 'named' trace
functions. This has a pattern match that matches the old trace function
(a 2 tuple where the second element is itself a 2 tuple):
https://github.com/erlang/otp/pull/1781
This patch changes to using a versioned record (so we can extend the
tracing later if needed) and adds 3 more options to tracing; count,
timeout and format string.
Additionally, tracing an OTP process via start_link arguments is now
documented.
6 vuotta sitten
Mark Allen
afdb8ed2f8
Check for the right number of dropped messages
Was 16, is now 15 after we merged #475
6 vuotta sitten
Mark Allen
37b7facc41
Roll 3.6.6
6 vuotta sitten
getong
2fc5ccf6cb
use the variable already exist
6 vuotta sitten
Andreas Schultz
ca40952066
replace list comprehension with recursive invokation in pr/2
The list comprehension fail on improper lists, use a recursive
call into pr/2 instead.
Fixes #477 .
6 vuotta sitten
Rustam Safargalin
370c909ce2
Fix check_hwm
During further testing found one more bug in check_hwm
This fix is an addition to https://github.com/erlang-lager/lager/pull/467
6 vuotta sitten
Andrew Thompson
1249ede5be
Roll 3.6.5
6 vuotta sitten