Skip to content

Commit e3257b5

Browse files
committed
Remove unecessary import and logs from db.js
1 parent 9a69e37 commit e3257b5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/db.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const flatfile = require('flat-file-db')
21
const promise = require('promise')
32

43
let adapter
@@ -9,7 +8,6 @@ if (process.env.DB_ADAPTER) {
98
const adapterName = `micro-analytics-adapter-${process.env.DB_ADAPTER}`
109
try {
1110
adapter = require(adapterName)
12-
console.log(`Using ${adapterName}`)
1311
} catch (err) {
1412
if (err.code === 'MODULE_NOT_FOUND') {
1513
// Console.error a warning message, but normally exit the process to avoid printing ugly npm ERR lines and stack trace.
@@ -18,7 +16,6 @@ if (process.env.DB_ADAPTER) {
1816
}
1917
}
2018
} else {
21-
console.log('Using standard flat-file-adapter')
2219
adapter = require('./flat-file-adapter')
2320
}
2421

0 commit comments

Comments
 (0)