Kouhei Sutou
null+****@clear*****
Tue Feb 23 10:33:47 JST 2016
Kouhei Sutou 2016-02-23 10:33:47 +0900 (Tue, 23 Feb 2016) New Revision: 2087d49b59b2c518a702d1d305bd60f6aa40e74f https://github.com/groonga/heroku-buildpack-groonga/commit/2087d49b59b2c518a702d1d305bd60f6aa40e74f Message: Show debug log Modified files: bin/compile Modified: bin/compile (+2 -1) =================================================================== --- bin/compile 2016-02-23 10:18:15 +0900 (68e7849) +++ bin/compile 2016-02-23 10:33:47 +0900 (8bae543) @@ -125,7 +125,8 @@ Dir.chdir(build_dir) do ENV["MECABRC"] = "#{mecabrc}#{mecabrc_suffix}" sh("sed", "-i#{mecabrc_suffix}", "-e", "s,/app,#{build_dir},g", mecabrc) mkdir_p(File.dirname(database_path)) - sh("groonga", "-n", database_path, "quit") + sh("groonga", "--log-path", "/tmp/log", "--log-level", "debug", "-n", database_path, "quit") + puts(File.read("/tmp/log")) puts("-----> Loading data") Dir.glob("groonga/*.grn").sort.each do |grn| -------------- next part -------------- HTML����������������������������...Download