Skip to content

Commit

Permalink
Release 1.6.2
Browse files Browse the repository at this point in the history
- fix concurrency issue with laziness of the sequence operator
  • Loading branch information
atroxaper committed Jun 22, 2020
2 parents 6b16aef + 37379b2 commit 929c874
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/.idea/
**/.precomp/
**/*.iml
**/*.iml
**/.DS_Store
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Version history:

1.6.2 2020-06-22 'fix concurrency issue'
- fix concurrency issue with laziness of the sequence operator

1.6.1 2019-04-29 'conditional log calls'
- add methods info-on, error-on or so to check will a log will be written
- separate sprintf-slyte and contatenation-slyte logs into separate methods
Expand Down
2 changes: 1 addition & 1 deletion META6.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "LogP6",
"description": "Full customisable logging library inspired by idea of separate logging and its configuration.",
"version": "1.6.1",
"version": "1.6.2",
"perl": "6.d",
"authors": [
"Mikhail Khorkov"
Expand Down
4 changes: 3 additions & 1 deletion lib/LogP6/WriterConf/Pattern.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ class XTrace does PatternPart {
method show($x) { $x.backtrace }
}

my $digits = ('00', '01' ... '99').List;
# use explicit initialization (without sequence operator for example)
# to avoid laziness which can lead to concurrency issues
my $digits = <00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99>.List;
my $months = <0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec>.List;

class Date does PatternPart {
Expand Down

0 comments on commit 929c874

Please sign in to comment.