Skip to content

Commit 0253d5f

Browse files
committed
The error_handler will now print the first 10 lines of a stack trace.
1 parent 64e20d6 commit 0253d5f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [1.1.2] - 2023-04-22
2+
3+
### Added
4+
5+
- The `error_handler` will now print the first 10 lines of a stack trace.
6+
17
## [1.1.1] - 2023-04-16
28

39
### Fixed

lib/lambda_punch.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def handled!(context)
5151
def error_handler
5252
@error_handler ||= lambda do |e|
5353
logger.error "Queue#call::error => #{e.message}"
54+
logger.error e.backtrace[0..10].join("\n")
5455
end
5556
end
5657

lib/lambda_punch/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module LambdaPunch
2-
VERSION = "1.1.1"
2+
VERSION = "1.1.2"
33
end

0 commit comments

Comments
 (0)