mirror of
https://github.com/comatory/fb2iCal
synced 2025-06-05 22:09:25 +02:00
feature: add endpoint for logging instrumentation
This commit is contained in:
@@ -8,9 +8,9 @@ class FirebaseTransport extends Transport {
|
||||
this._db = options.db
|
||||
}
|
||||
|
||||
log(info, callback) {
|
||||
async log(info, callback) {
|
||||
try {
|
||||
this._db.ref(`log-${new Date().getTime()}`).set(info)
|
||||
await this._db.ref(`log-${new Date().getTime()}`).set(info)
|
||||
callback(null, info)
|
||||
this.emit('logged', info)
|
||||
} catch (err) {
|
||||
|
Reference in New Issue
Block a user