sqreen 1.3.01487852305-java → 1.3.11488790967-java

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
  SHA1:
3
- metadata.gz: 80d6f12c6d9e5e3fd7e1d664e390442be1ad9774
4
- data.tar.gz: 589b6f266a23b3bca8393b476ec7aa18467e96ff
3
+ metadata.gz: 6b9c0a7b379631c9b9555fa79b169a4cda6b3616
4
+ data.tar.gz: b5bedbfd493be22dc2bd45364495d30f188b909a
5
5
  SHA512:
6
- metadata.gz: c8530af6c65152bae1b101e83ea95670fe12526bde359eef1264c7a5932fd30aabe8fa3c27ae80efb8d1b49e71889d270b5da465227f75c5a6fa37a881ddd7ee
7
- data.tar.gz: 39fe29b1e0c6bd20772301479d431ba279741b8b4071c6c0b3e239cbe215c4334eafc7468e5615c762f65fdc77b74644e6097ae56481a039a8055e170ad1af58
6
+ metadata.gz: f8c1b2935556f823f1d19d3dba8ba50eb1fcc770f9beefc5746ab2758beb61c71792d1888c2230b405368a18ec99d53e2abcdbadde170480dfd552c50f34bfed
7
+ data.tar.gz: 40b1f4ab0fb62101e571f3926668fb489217c0bad0a6ca188194b4e90dd9acf0ef38113c614e1daf317f6a8cbd90bdef797d96a65bfd7b6a20bd9ac5e4953ff7
@@ -37,7 +37,7 @@ Sqreen.framework.on_start do |framework|
37
37
  Sqreen.log.error "Sorry but your Sqreen token appears to be invalid.\nYour application is NOT currently protected by Sqreen.\n\nHave you correctly filled your config/sqreen.yml?\n\n"
38
38
  rescue Exception => e
39
39
  Sqreen.log.error e.inspect
40
- Sqreen.log.info e.backtrace.join("\n")
40
+ Sqreen.log.debug e.backtrace.join("\n")
41
41
  if runner
42
42
  # immediately post exception
43
43
  runner.session.post_sqreen_exception(Sqreen::RemoteException.new(e))
@@ -45,15 +45,15 @@ Sqreen.framework.on_start do |framework|
45
45
  begin
46
46
  runner.remove_instrumentation
47
47
  rescue => remove_exception
48
- Sqreen.log.error(remove_exception.inspect)
49
- # We did not managed to remove instrumentation, state is unclear:
48
+ Sqreen.log.debug(remove_exception.inspect)
49
+ # We did not manage to remove instrumentation, state is unclear:
50
50
  # terminate thread
51
51
  return nil
52
52
  end
53
53
  begin
54
54
  runner.logout(false)
55
55
  rescue => logout_exception
56
- Sqreen.log.error(logout_exception.inspect)
56
+ Sqreen.log.debug(logout_exception.inspect)
57
57
  nil
58
58
  end
59
59
  end
@@ -264,6 +264,11 @@ module Sqreen
264
264
  r
265
265
  end
266
266
 
267
+ # Expose current working directory
268
+ def cwd
269
+ Dir.getwd
270
+ end
271
+
267
272
  protected
268
273
 
269
274
  def hook_rack_request(klass)
@@ -31,7 +31,7 @@ module Sqreen
31
31
  adapter_name = adapter.adapter_name
32
32
  rescue
33
33
  # FIXME: we may want to log that
34
- Sqreen.log.error 'cannot find ADAPTER_NAME'
34
+ Sqreen.log.warn 'cannot find ADAPTER_NAME'
35
35
  return nil
36
36
  end
37
37
  db_type = DB_MAPPING[adapter_name]
@@ -27,7 +27,7 @@ module Sqreen
27
27
  adapter_name = adapter.class.const_get 'ADAPTER_NAME'
28
28
  rescue
29
29
  # FIXME: we may want to log that
30
- Sqreen.log.error 'cannot find ADAPTER_NAME'
30
+ Sqreen.log.warn 'cannot find ADAPTER_NAME'
31
31
  return nil
32
32
  end
33
33
  db_type = DB_MAPPING[adapter_name]
@@ -72,8 +72,8 @@ module Sqreen
72
72
  end
73
73
  returns << res
74
74
  rescue => e
75
- Sqreen.log.error "we catch an exception: #{e.inspect}"
76
- Sqreen.log.error e.backtrace
75
+ Sqreen.log.warn "we catch an exception: #{e.inspect}"
76
+ Sqreen.log.debug e.backtrace
77
77
  if cb.respond_to?(:record_exception)
78
78
  cb.record_exception(e)
79
79
  else
@@ -108,8 +108,8 @@ module Sqreen
108
108
  end
109
109
  returns << res
110
110
  rescue => e
111
- Sqreen.log.error "we catch an exception: #{e.inspect}"
112
- Sqreen.log.error e.backtrace
111
+ Sqreen.log.warn "we catch an exception: #{e.inspect}"
112
+ Sqreen.log.debug e.backtrace
113
113
  if cb.respond_to?(:record_exception)
114
114
  cb.record_exception(e)
115
115
  else
@@ -144,8 +144,8 @@ module Sqreen
144
144
  end
145
145
  returns << res
146
146
  rescue => e
147
- Sqreen.log.error "we catch an exception: #{e.inspect}"
148
- Sqreen.log.error e.backtrace
147
+ Sqreen.log.warn "we catch an exception: #{e.inspect}"
148
+ Sqreen.log.debug e.backtrace
149
149
  if cb.respond_to?(:record_exception)
150
150
  cb.record_exception(e)
151
151
  else
@@ -101,8 +101,8 @@ module Sqreen
101
101
  args_override = build_accessor(args_override) if args_override
102
102
  end
103
103
  rescue => e
104
- Sqreen.log.error "we catch a JScb exception: #{e.inspect}"
105
- Sqreen.log.error e.backtrace
104
+ Sqreen.log.warn "we catch a JScb exception: #{e.inspect}"
105
+ Sqreen.log.debug e.backtrace
106
106
  record_exception(e, :cb => name, :args => arguments)
107
107
  nil
108
108
  end
@@ -102,8 +102,8 @@ module Sqreen
102
102
  end
103
103
  wanted_features = conf_features
104
104
  rescue
105
- Sqreen.log.error do
106
- "NOT using Invalid inital features #{conf_initial_features}"
105
+ Sqreen.log.warn do
106
+ "NOT using invalid inital features #{conf_initial_features}"
107
107
  end
108
108
  end
109
109
  end
@@ -133,7 +133,7 @@ module Sqreen
133
133
  return yield
134
134
  rescue => e
135
135
 
136
- Sqreen.log.warn(e.inspect)
136
+ Sqreen.log.debug(e.inspect)
137
137
 
138
138
  current_retry += 1
139
139
 
@@ -311,7 +311,7 @@ module Sqreen
311
311
  def post_sqreen_exception(exception)
312
312
  post('sqreen_exception', exception.to_hash, {}, 5)
313
313
  rescue *NET_ERRORS => e
314
- Sqreen.log.error(format('Could not post exception (network down? %s) %s',
314
+ Sqreen.log.warn(format('Could not post exception (network down? %s) %s',
315
315
  e.inspect,
316
316
  exception.to_hash.inspect))
317
317
  nil
@@ -2,5 +2,5 @@
2
2
  # Please refer to our terms for more information: https://www.sqreen.io/terms.html
3
3
  # Warning This file is auto generated! DO NOT edit.
4
4
  module Sqreen
5
- VERSION = "1.3.01487852305".freeze
5
+ VERSION = "1.3.11488790967".freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.01487852305
4
+ version: 1.3.11488790967
5
5
  platform: java
6
6
  authors:
7
7
  - Sqreen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-23 00:00:00.000000000 Z
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs