From ac31a09e4d7360741d440740f502b08881200a97 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Tue, 5 Feb 2019 13:37:39 +0100 Subject: [PATCH] cleanup --- server/db/logger.go | 11 ----------- server/db/postgres/postgres.go | 2 +- server/mapobjectdb/logger.go | 11 ----------- 3 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 server/db/logger.go delete mode 100644 server/mapobjectdb/logger.go diff --git a/server/db/logger.go b/server/db/logger.go deleted file mode 100644 index e936b64..0000000 --- a/server/db/logger.go +++ /dev/null @@ -1,11 +0,0 @@ -package db - -import ( - "github.com/sirupsen/logrus" -) - -var log *logrus.Entry - -func init() { - log = logrus.WithFields(logrus.Fields{"prefix": "db"}) -} diff --git a/server/db/postgres/postgres.go b/server/db/postgres/postgres.go index acb9fe0..9a42a2c 100644 --- a/server/db/postgres/postgres.go +++ b/server/db/postgres/postgres.go @@ -2,7 +2,7 @@ package postgres import ( "database/sql" - _ "github.com/mattn/go-sqlite3" + _ "https://github.com/lib/pq" "mapserver/coords" "mapserver/db" ) diff --git a/server/mapobjectdb/logger.go b/server/mapobjectdb/logger.go deleted file mode 100644 index 3dbcf6a..0000000 --- a/server/mapobjectdb/logger.go +++ /dev/null @@ -1,11 +0,0 @@ -package mapobjectdb - -import ( - "github.com/sirupsen/logrus" -) - -var log *logrus.Entry - -func init() { - log = logrus.WithFields(logrus.Fields{"prefix": "mapobjectdb"}) -}