sunspot_solr 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sunspot/solr/server.rb +18 -9
- data/sunspot_solr.gemspec +0 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a54c5d32df311f332d0c7f0c108429e880d60a7181c50b29d1eed5d678598a43
|
4
|
+
data.tar.gz: 1d24c0f41f77b5e813c12e8c4358f309ed24190134dd6b7c702061915031c052
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da7e2ff2a4c98b9baa445dadfa2574559a12d745260d549ca6801f5fcb70f32e9d87ec8684e5a9400f10aa722f1a573186d2b251d0184597d66a512e3340acac
|
7
|
+
data.tar.gz: 1c7053118bdfce36b53aed2df860cba9472f20f37d32673ab17fc6ca4a1490136f778d7e9725581c713cd6fea2b915802e8f7c01645915cdbc2d798031c565c2
|
data/lib/sunspot/solr/server.rb
CHANGED
@@ -95,6 +95,7 @@ module Sunspot
|
|
95
95
|
command << "-p" << "#{port}" if port
|
96
96
|
command << "-h" << "#{bind_address}" if bind_address
|
97
97
|
command << "-s" << "#{solr_home}" if solr_home
|
98
|
+
command << "-Dlog4j.configuration=file:#{logging_config.path}" if logging_config
|
98
99
|
|
99
100
|
exec_in_solr_executable_directory(command)
|
100
101
|
end
|
@@ -194,18 +195,26 @@ module Sunspot
|
|
194
195
|
|
195
196
|
private
|
196
197
|
|
197
|
-
def
|
198
|
-
return @
|
199
|
-
@
|
198
|
+
def logging_config
|
199
|
+
return @logging_config if defined?(@logging_config)
|
200
|
+
@logging_config =
|
200
201
|
if log_file
|
201
|
-
logging_config = Tempfile.new('
|
202
|
-
logging_config.puts("
|
203
|
-
logging_config.puts("
|
204
|
-
logging_config.puts("
|
205
|
-
logging_config.puts("
|
202
|
+
logging_config = Tempfile.new('log4j.properties')
|
203
|
+
logging_config.puts("log4j.rootLogger=#{log_level.to_s.upcase}, file, CONSOLE")
|
204
|
+
logging_config.puts("log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender")
|
205
|
+
logging_config.puts("log4j.appender.CONSOLE.layout=org.apache.log4j.EnhancedPatternLayout")
|
206
|
+
logging_config.puts("log4j.appender.CONSOLE.layout.ConversionPattern=%-4r %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n")
|
207
|
+
logging_config.puts("log4j.appender.file=org.apache.log4j.RollingFileAppender")
|
208
|
+
logging_config.puts("log4j.appender.file.MaxFileSize=4MB")
|
209
|
+
logging_config.puts("log4j.appender.file.MaxBackupIndex=9")
|
210
|
+
logging_config.puts("log4j.appender.file.File=#{log_file}")
|
211
|
+
logging_config.puts("log4j.appender.file.layout=org.apache.log4j.EnhancedPatternLayout")
|
212
|
+
logging_config.puts("log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n")
|
213
|
+
logging_config.puts("log4j.logger.org.apache.solr.update.LoggingInfoStream=OFF")
|
214
|
+
|
206
215
|
logging_config.flush
|
207
216
|
logging_config.close
|
208
|
-
logging_config
|
217
|
+
logging_config
|
209
218
|
end
|
210
219
|
end
|
211
220
|
end
|
data/sunspot_solr.gemspec
CHANGED
@@ -22,8 +22,6 @@ Gem::Specification.new do |s|
|
|
22
22
|
distribution is well suited to development and testing.
|
23
23
|
TEXT
|
24
24
|
|
25
|
-
s.rubyforge_project = "sunspot"
|
26
|
-
|
27
25
|
s.files = `git ls-files`.split("\n")
|
28
26
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
29
27
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunspot_solr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mat Brown
|
@@ -23,10 +23,10 @@ authors:
|
|
23
23
|
- Sam Granieri
|
24
24
|
- Nick Zadrozny
|
25
25
|
- Jason Ronallo
|
26
|
-
autorequire:
|
26
|
+
autorequire:
|
27
27
|
bindir: bin
|
28
28
|
cert_chain: []
|
29
|
-
date:
|
29
|
+
date: 2022-05-30 00:00:00.000000000 Z
|
30
30
|
dependencies:
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: rake
|
@@ -565,7 +565,7 @@ homepage: https://github.com/sunspot/sunspot/tree/master/sunspot_solr
|
|
565
565
|
licenses:
|
566
566
|
- MIT
|
567
567
|
metadata: {}
|
568
|
-
post_install_message:
|
568
|
+
post_install_message:
|
569
569
|
rdoc_options: []
|
570
570
|
require_paths:
|
571
571
|
- lib
|
@@ -580,8 +580,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
580
580
|
- !ruby/object:Gem::Version
|
581
581
|
version: '0'
|
582
582
|
requirements: []
|
583
|
-
rubygems_version: 3.
|
584
|
-
signing_key:
|
583
|
+
rubygems_version: 3.1.4
|
584
|
+
signing_key:
|
585
585
|
specification_version: 4
|
586
586
|
summary: Bundled Solr distribution for Sunspot
|
587
587
|
test_files:
|