mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Insert log messages with soft durability.
This commit is contained in:
parent
3685d543c4
commit
46591b24c8
1 changed files with 10 additions and 7 deletions
|
@ -40,13 +40,16 @@ dbapi.loadGroup = function(email) {
|
||||||
|
|
||||||
dbapi.saveDeviceLog = function(serial, entry) {
|
dbapi.saveDeviceLog = function(serial, entry) {
|
||||||
return db.run(r.table('logs').insert({
|
return db.run(r.table('logs').insert({
|
||||||
serial: entry.serial
|
serial: entry.serial
|
||||||
, timestamp: r.epochTime(entry.timestamp)
|
, timestamp: r.epochTime(entry.timestamp)
|
||||||
, priority: entry.priority
|
, priority: entry.priority
|
||||||
, tag: entry.tag
|
, tag: entry.tag
|
||||||
, pid: entry.pid
|
, pid: entry.pid
|
||||||
, message: entry.message
|
, message: entry.message
|
||||||
}))
|
}
|
||||||
|
, {
|
||||||
|
durability: 'soft'
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
dbapi.saveDevice = function(serial, device) {
|
dbapi.saveDevice = function(serial, device) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue