git ssb

16+

Dominic / patchbay



Commit 073a230fd02b316ecac6190c31ba3ba55e610af0

remove logging

Dominic Tarr committed on 12/4/2016, 4:09:50 PM
Parent: 4867d771b3d4e27e3e132a5f65ecdfb8990fe925

Files changed

modules_extra/notifications.jschanged
modules_extra/notifications.jsView
@@ -48,11 +48,9 @@
4848 function isOurMsg(id, cb) {
4949 if (!id) return cb(null, false)
5050 if (typeof id === 'object' && typeof id.link === 'string') id = id.link
5151 if (!ref.isMsg(id)) return cb(null, false)
52- console.log('LOOKUP', id)
5352 api.sbot_get(id, function (err, msg) {
54- console.log('FOUND', msg)
5553 if (err && err.name == 'NotFoundError') cb(null, false)
5654 else if (err) cb(err)
5755 else if (msg.content.type === 'issue' || msg.content.type === 'pull-request')
5856 isOurMsg(msg.content.repo || msg.content.project, cb)
@@ -71,12 +69,10 @@
7169 })
7270 }
7371
7472 return paramap(function (msg, cb) {
75- console.log("LOOKUP", msg)
7673 var c = msg.value && msg.value.content
7774 if (!c || typeof c !== 'object') return cb()
78- console.log(msg.value.author, ourIds)
7975 if (msg.value.author in ourIds) return cb()
8076
8177 if (c.mentions && Array.isArray(c.mentions) && c.mentions.some(linksToUs))
8278 return cb(null, msg)
@@ -134,9 +130,8 @@
134130 getFirstMessage(id, function (err, msg) {
135131 if (err) return console.error(err)
136132 if (!oldest || msg.value.timestamp < oldest) {
137133 oldest = msg.value.timestamp
138- console.log('OLDEST', msg)
139134 }
140135 })
141136
142137 var content = h('div.column.scroller__content')
@@ -161,9 +156,8 @@
161156 notifications(ids),
162157 pull.filter(),
163158 pull.take(function (msg) {
164159 // abort stream after we pass the oldest messages of our feeds
165- console.log('old?', msg.value.timestamp, oldest)
166160 return !oldest ? true : msg.value.timestamp > oldest
167161 }),
168162 Scroller(div, content, api.message_render, false, false)
169163 )
@@ -173,6 +167,4 @@
173167 }
174168 }
175169 }
176170
177-
178-

Built with git-ssb-web