Skip to content

Commit 79aa53f

Browse files
committed
Debug
1 parent 377447e commit 79aa53f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ For the moment, there are some difficulties:
1515
→ I need to try the polyfills
1616

1717

18+
TODO
19+
----
20+
21+
* Add comments
22+
* ./bin/board-linuxfr -svS ../board.sock
23+
24+
1825
See also
1926
--------
2027

lib/board-linuxfr.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ class BoardLinuxfr < Goliath::API
1010
plugin RedisPlugin
1111

1212
def response(env)
13-
env.logger.debug "New client: #{env['PATH_INFO']}"
13+
env.logger.info "New client: #{env['PATH_INFO']}"
1414
send_msg = ->(args) {
1515
id, msg = *args
16-
env.logger.info " -> #{id}. #{msg}"
16+
env.logger.debug " -> #{id}. #{msg}"
1717
env.stream_send("data: #{args.last}\nid: #{args.first}\n\n")
1818
}
1919
event_id = env['HTTP_LAST_EVENT_ID']
2020
chan_name = env['PATH_INFO'].split('/', 3).last
21-
env.logger.info "chan_name = #{chan_name.inspect}"
2221
env['cache'] = status[:cache][chan_name]
2322
env['chan'] = status[:channels][chan_name]
2423
env['sid'] = env['chan'].subscribe &send_msg

0 commit comments

Comments
 (0)