Clean up console log printing

This commit is contained in:
Justin Hawkins 2021-10-11 20:25:20 +10:30
parent c2bbe13ca7
commit 244cd7b9da

View File

@ -37,11 +37,10 @@ func init() {
} }
func SendLog(entry string, entryType LogEntryType) { func SendLog(entry string, entryType LogEntryType) {
logInput <- LogEntry{ logInput <- LogEntry{
Timestamp: time.Now(), Timestamp: time.Now(),
Entry: entry, Entry: entry,
Type: entryType, Type: entryType,
} }
log.Printf(entry) log.Printf("%6s: %s", entryType, entry)
} }