mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-14 15:29:02 +00:00
More work on UI
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"github.com/Sirupsen/logrus"
|
||||
"src/task_tracker/config"
|
||||
@@ -44,12 +43,6 @@ func (database *Database) SetupLoggerHook() {
|
||||
func (database *Database) GetLogs(since int64, level logrus.Level) *[]LogEntry {
|
||||
|
||||
db := database.getDB()
|
||||
logs := getLogs(since, level, db)
|
||||
|
||||
return logs
|
||||
}
|
||||
|
||||
func getLogs(since int64, level logrus.Level, db *sql.DB) *[]LogEntry {
|
||||
|
||||
var logs []LogEntry
|
||||
|
||||
|
||||
Reference in New Issue
Block a user