mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 09:53:21 +02:00
Insert log messages with soft durability.
This commit is contained in:
@@ -40,13 +40,16 @@ dbapi.loadGroup = function(email) {
|
||||
|
||||
dbapi.saveDeviceLog = function(serial, entry) {
|
||||
return db.run(r.table('logs').insert({
|
||||
serial: entry.serial
|
||||
, timestamp: r.epochTime(entry.timestamp)
|
||||
, priority: entry.priority
|
||||
, tag: entry.tag
|
||||
, pid: entry.pid
|
||||
, message: entry.message
|
||||
}))
|
||||
serial: entry.serial
|
||||
, timestamp: r.epochTime(entry.timestamp)
|
||||
, priority: entry.priority
|
||||
, tag: entry.tag
|
||||
, pid: entry.pid
|
||||
, message: entry.message
|
||||
}
|
||||
, {
|
||||
durability: 'soft'
|
||||
}))
|
||||
}
|
||||
|
||||
dbapi.saveDevice = function(serial, device) {
|
||||
|
||||
Reference in New Issue
Block a user