uc3-dmp-api-core 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b551c08f61f7dfefb748dccb66572b97d910efedc895061058b2750c701f5bdc
|
4
|
+
data.tar.gz: 29a146bdc34d0a344f8d3d3577102364d0465358d01a5346a36a4df3290ea989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5458ceb6125ad2aff9085fdcebdca615d150c703d39243f683748db554981d4af73e1880260daef2c36380ed0820dca1d72e9f32b4e7931ad73db3c0a0572360
|
7
|
+
data.tar.gz: dd36ddc16e919064bbefa90295db54e81c8d7fc923954efe920264cefbf0bc1117ae29345f5c0dab7dbef7bc443de5300c0d3807d8abd0849e4c66c82ed2d3e4
|
@@ -10,7 +10,7 @@ module Uc3DmpApiCore
|
|
10
10
|
# - event: the Lambda event if available
|
11
11
|
#
|
12
12
|
# --------------------------------------------------------------------------------
|
13
|
-
class
|
13
|
+
class LogWriter
|
14
14
|
class << self
|
15
15
|
# rubocop:disable Metrics/AbcSize
|
16
16
|
def log_error(source:, message:, details: {}, event: {})
|
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
require 'aws-sdk-ssm'
|
4
4
|
|
5
|
-
require 'logger'
|
6
|
-
|
7
5
|
module Uc3DmpApiCore
|
8
6
|
# ----------------------------------------------------
|
9
7
|
# SSM Parameter Store Helper
|
@@ -33,7 +31,7 @@ module Uc3DmpApiCore
|
|
33
31
|
!full_key.include?('%{provenance}')
|
34
32
|
fetch_value(key: format(full_key, key_vals))
|
35
33
|
rescue Aws::Errors::ServiceError => e
|
36
|
-
|
34
|
+
LogWriter.log_error(
|
37
35
|
source: "#{SOURCE} - looking for #{key}", message: e.message, details: e.backtrace
|
38
36
|
)
|
39
37
|
nil
|
data/lib/uc3-dmp-api-core.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uc3-dmp-api-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Riley
|
@@ -117,7 +117,7 @@ extra_rdoc_files: []
|
|
117
117
|
files:
|
118
118
|
- README.md
|
119
119
|
- lib/uc3-dmp-api-core.rb
|
120
|
-
- lib/uc3-dmp-api-core/
|
120
|
+
- lib/uc3-dmp-api-core/log_writer.rb
|
121
121
|
- lib/uc3-dmp-api-core/notifier.rb
|
122
122
|
- lib/uc3-dmp-api-core/paginator.rb
|
123
123
|
- lib/uc3-dmp-api-core/responder.rb
|