Skip to content

Commit

Permalink
target v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fpessolano committed Jul 22, 2020
1 parent 856c09e commit 2df80bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [0.2.1]
#### Changed
- SetError can also be aggregated

## [0.2.0]
#### Added
- Lock for controlling access to definition map to avoid races with concurrent routines
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MLOGGER
About: module for multi file level logging
Version: 0.2.0
Version: 0.2.1
Author: F.Pessolano
Licence: MIT

Expand Down
4 changes: 2 additions & 2 deletions mlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ func Panic(lg int, dt LoggerData, quit bool) {
}

// SetError, depending if the error is not nil, sets the error or not
func SetError(lg int, es string, id string, e error) bool {
func SetError(lg int, es string, id string, e error, data []int, aggregate bool) bool {
if id == "" {
id = "n/a"
}
if e != nil {
Error(lg, LoggerData{id, es, []int{}, false})
Error(lg, LoggerData{id, es, data, aggregate})
return false
}
return true
Expand Down

0 comments on commit 2df80bf

Please sign in to comment.