Clean up console log printing
This commit is contained in:
parent
c2bbe13ca7
commit
244cd7b9da
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user