2014-04-26 09:18:56 +00:00
|
|
|
package DeviceDatabase
|
|
|
|
|
2014-10-19 17:19:11 +00:00
|
|
|
import (
|
|
|
|
"github.com/SommerEngineering/Ocean/Log/Meta"
|
|
|
|
)
|
2014-04-26 09:18:56 +00:00
|
|
|
|
2015-06-17 15:44:52 +00:00
|
|
|
// This function is the interface between the logging system and the database logger.
|
2014-04-26 09:18:56 +00:00
|
|
|
func (dev Database) Log(entries []Meta.Entry) {
|
|
|
|
|
|
|
|
//
|
2015-02-06 13:12:45 +00:00
|
|
|
// Cannot log here to prevent endless loop (consumer is also producer)
|
2014-04-26 09:18:56 +00:00
|
|
|
//
|
|
|
|
|
2015-06-17 15:44:52 +00:00
|
|
|
// Write every incoming batch to the cache:
|
2014-04-26 09:18:56 +00:00
|
|
|
write2Cache(entries)
|
|
|
|
}
|