1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 02:09:32 +02:00

Separate device log recording from the rest of the app. This should cause less strain on the DB server especially since the full event log is rarely needed; you could just use your favorite log collector to watch stderr. DB calls are still mixed, but may be refactored out later.

This commit is contained in:
Simo Kinnunen 2015-08-04 20:41:36 +09:00
parent 85067b6f0b
commit 3e5903edcf
4 changed files with 107 additions and 2 deletions

View file

@ -139,7 +139,6 @@ module.exports = function(options) {
appDealer.send([channel, data])
})
.on(wire.DeviceLogMessage, function(channel, message, data) {
dbapi.saveDeviceLog(message.serial, message)
appDealer.send([channel, data])
})
.on(wire.DeviceIdentityMessage, function(channel, message, data) {