carlasouza / gilb

Ruby IRC bot with builtin webserver for Gitlab webhooks
8 stars 2 forks source link

Nothing happen after push #2

Open MrKeiKun opened 11 years ago

MrKeiKun commented 11 years ago

debug doesn't show and and logging is bugged related here: https://github.com/carlasouza/gilb/issues/1

Sinatra doesn’t know this ditty.

Try this:
get '/commit' do
  "Hello World"
end

debug doesn't means anything either

66.175.220.89 - - [01/Jun/2013 18:35:32] "POST /commit HTTP/1.1" 200 - 0.0011
66.175.220.89 - - [01/Jun/2013 18:36:11] "POST /commit HTTP/1.1" 200 - 0.0010
112.207.80.88 - - [01/Jun/2013 18:36:23] "GET / HTTP/1.1" 404 446 0.0013
112.207.80.88 - - [01/Jun/2013 18:36:23] "GET /favicon.ico HTTP/1.1" 404 457 0.0010
112.207.80.88 - - [01/Jun/2013 18:36:24] "GET / HTTP/1.1" 404 446 0.0012
112.207.80.88 - - [01/Jun/2013 18:36:24] "GET /__sinatra__/404.png HTTP/1.1" 200 - 0.0545
112.207.80.88 - - [01/Jun/2013 18:36:25] "GET / HTTP/1.1" 404 446 0.0013
112.207.80.88 - - [01/Jun/2013 18:36:25] "GET /favicon.ico HTTP/1.1" 404 457 0.0011
112.207.80.88 - - [01/Jun/2013 18:36:25] "GET / HTTP/1.1" 404 446 0.0009
112.207.80.88 - - [01/Jun/2013 18:36:25] "GET / HTTP/1.1" 404 446 0.0012
112.207.80.88 - - [01/Jun/2013 18:36:25] "GET / HTTP/1.1" 404 446 0.0010
112.207.80.88 - - [01/Jun/2013 18:36:25] "GET / HTTP/1.1" 404 446 0.0012
112.207.80.88 - - [01/Jun/2013 18:36:25] "GET / HTTP/1.1" 404 446 0.0012
112.207.80.88 - - [01/Jun/2013 18:36:25] "GET /__sinatra__/404.png HTTP/1.1" 200 - 0.0012
112.207.80.88 - - [01/Jun/2013 18:36:26] "GET /favicon.ico HTTP/1.1" 404 457 0.0012
112.207.80.88 - - [01/Jun/2013 18:36:52] "GET /commit HTTP/1.1" 404 452 0.0012
112.207.80.88 - - [01/Jun/2013 18:36:52] "GET /favicon.ico HTTP/1.1" 404 457 0.0012
112.207.80.88 - - [01/Jun/2013 18:36:54] "GET /commit HTTP/1.1" 404 452 0.0010
112.207.80.88 - - [01/Jun/2013 18:36:54] "GET /favicon.ico HTTP/1.1" 404 457 0.0010
112.207.80.88 - - [01/Jun/2013 18:36:55] "GET /commit HTTP/1.1" 404 452 0.0011
112.207.80.88 - - [01/Jun/2013 18:36:55] "GET /__sinatra__/404.png HTTP/1.1" 200 - 0.0011
112.207.80.88 - - [01/Jun/2013 18:36:56] "GET /favicon.ico HTTP/1.1" 404 457 0.0011
carlasouza commented 10 years ago

@MrKeiKun Can you paste your config file?

urbels commented 10 years ago

Same for me. I see that bot sees commit, but it did not notify to irc.

my config:

:http: :host: 0.0.0.0 :port: 4567 :behavior: :shorten_url: true :logging: :level: debug :output: bot-Gilb.log :irc: :server: irc.server (edited) :port: 6667 :nick: gilb :join_channel: true :git: :projects: dev: :branches:

btw log shows some errors: I, [2013-12-13T19:21:50.848274 #19572] INFO -- : New push to 'gilb' D, [2013-12-13T19:21:56.047108 #19572] DEBUG -- : Should I output event 'commits' for repository 'gilb'? true D, [2013-12-13T19:21:56.047244 #19572] DEBUG -- : Should I track commits for 'gilb/master'? true E, [2013-12-13T19:21:56.047337 #19572] ERROR -- : ./gilb:52:in block in send' E, [2013-12-13T19:21:56.047375 #19572] ERROR -- : ./gilb:50:ineach' E, [2013-12-13T19:21:56.047408 #19572] ERROR -- : ./gilb:50:in send' E, [2013-12-13T19:21:56.047439 #19572] ERROR -- : ./gilb:142:inprint_commits' E, [2013-12-13T19:21:56.047470 #19572] ERROR -- : ./gilb:133:in filter_commits' E, [2013-12-13T19:21:56.047501 #19572] ERROR -- : ./gilb:193:inblock (2 levels) in

'