forest_liana 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a488df7bcdc24a9fb36272473b3b81b14a134dd3
4
- data.tar.gz: b6031a9db5015d4fb2454db567b5bc986f5981f5
3
+ metadata.gz: c11b5cecdb14ff095685446cbdb6346b96534eb5
4
+ data.tar.gz: 457335b95720e68384dda19612f9d94a20dd76c9
5
5
  SHA512:
6
- metadata.gz: 2abe6d5a5ebf7e943ff80f36ed1fcb20a72df5d129f482644c88338d67d831201383c13ccc89167edb8af9dfb622b8298a2f73337038de053573a1f4f12bd3c1
7
- data.tar.gz: 68f3418e4c4cfefbf234cb5e1321d3749f73ab247a415d423deb9ed1588c200252d6d60a9e2cda86c9234161a7879e16f018c14413bd1a416933bfec69d2c436
6
+ metadata.gz: 1c00d67b506add56e5123e889c455f7840d211475786031da97126428c23f0f8183a058fa48121a02442e7778494a2637bf8e135fa425c2d46f1f8dc6c0de7c7
7
+ data.tar.gz: 62d79e39740e79d6e4b27bf803e80d3a00601ee2f61e4b5e1e9ffe1b5c159975a43a26b2da8628ad7ee1d59b7e445b4ac8fecc90bf11df075d1b04ff0c291492
@@ -201,5 +201,9 @@ module ForestLiana
201
201
  headers['X-Accel-Buffering'] = 'no'
202
202
  headers["Cache-Control"] = "no-cache"
203
203
  end
204
+
205
+ def format_stacktrace error
206
+ error.backtrace.join("\n\t")
207
+ end
204
208
  end
205
209
  end
@@ -18,7 +18,7 @@ module ForestLiana
18
18
  format.csv { render_csv(getter, @association.klass) }
19
19
  end
20
20
  rescue => error
21
- FOREST_LOGGER.error "Association Index error: #{error}"
21
+ FOREST_LOGGER.error "Association Index error: #{error}\n#{format_stacktrace(error)}"
22
22
  internal_server_error
23
23
  end
24
24
  end
@@ -35,7 +35,7 @@ module ForestLiana
35
35
  head :no_content
36
36
  end
37
37
  rescue => error
38
- FOREST_LOGGER.error "Association Update error: #{error}"
38
+ FOREST_LOGGER.error "Association Update error: #{error}"\n#{error.backtrace}
39
39
  internal_server_error
40
40
  end
41
41
  end
@@ -47,7 +47,7 @@ module ForestLiana
47
47
 
48
48
  head :no_content
49
49
  rescue => error
50
- FOREST_LOGGER.error "Association Associate error: #{error}"
50
+ FOREST_LOGGER.error "Association Associate error: #{error}\n#{format_stacktrace(error)}"
51
51
  internal_server_error
52
52
  end
53
53
  end
@@ -59,7 +59,7 @@ module ForestLiana
59
59
 
60
60
  head :no_content
61
61
  rescue => error
62
- FOREST_LOGGER.error "Association Associate error: #{error}"
62
+ FOREST_LOGGER.error "Association Associate error: #{error}\n#{format_stacktrace(error)}"
63
63
  internal_server_error
64
64
  end
65
65
  end
@@ -23,7 +23,7 @@ module ForestLiana
23
23
  format.csv { render_csv(getter, @resource) }
24
24
  end
25
25
  rescue => error
26
- FOREST_LOGGER.error "Records Index error: #{error}"
26
+ FOREST_LOGGER.error "Records Index error: #{error}\n#{format_stacktrace(error)}"
27
27
  internal_server_error
28
28
  end
29
29
  end
@@ -36,7 +36,7 @@ module ForestLiana
36
36
  render serializer: nil, json:
37
37
  serialize_model(get_record(getter.record), include: includes(getter))
38
38
  rescue => error
39
- FOREST_LOGGER.error "Record Show error: #{error}"
39
+ FOREST_LOGGER.error "Record Show error: #{error}\n#{format_stacktrace(error)}"
40
40
  internal_server_error
41
41
  end
42
42
  end
@@ -57,7 +57,7 @@ module ForestLiana
57
57
  creator.record.errors), status: 400
58
58
  end
59
59
  rescue => error
60
- FOREST_LOGGER.error "Record Create error: #{error}"
60
+ FOREST_LOGGER.error "Record Create error: #{error}\n#{format_stacktrace(error)}"
61
61
  internal_server_error
62
62
  end
63
63
  end
@@ -78,7 +78,7 @@ module ForestLiana
78
78
  updater.record.errors), status: 400
79
79
  end
80
80
  rescue => error
81
- FOREST_LOGGER.error "Record Update error: #{error}"
81
+ FOREST_LOGGER.error "Record Update error: #{error}\n#{format_stacktrace(error)}"
82
82
  internal_server_error
83
83
  end
84
84
  end
@@ -88,7 +88,7 @@ module ForestLiana
88
88
  @resource.destroy(params[:id])
89
89
  head :no_content
90
90
  rescue => error
91
- FOREST_LOGGER.error "Record Destroy error: #{error}"
91
+ FOREST_LOGGER.error "Record Destroy error: #{error}\n#{format_stacktrace(error)}"
92
92
  internal_server_error
93
93
  end
94
94
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-01 00:00:00.000000000 Z
11
+ date: 2018-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails