aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/log/log.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/log/log.go b/internal/log/log.go
index d25ea8e..0238c7e 100644
--- a/internal/log/log.go
+++ b/internal/log/log.go
@@ -6,6 +6,7 @@ import (
"os"
)
+var debugLogger = log.New(os.Stdout, "", log.LstdFlags)
var errorLogger = log.New(os.Stderr, "ERROR ", log.LstdFlags|log.Lmsgprefix)
var warnLogger = log.New(os.Stdout, "WARN ", log.LstdFlags|log.Lmsgprefix)
var enableDebug = false
@@ -16,13 +17,13 @@ func SetDebug(state bool) {
func Print(v ...interface{}) {
if enableDebug {
- _ = log.Output(2, fmt.Sprint(v...))
+ _ = debugLogger.Output(2, fmt.Sprint(v...))
}
}
func Printf(format string, v ...interface{}) {
if enableDebug {
- _ = log.Output(2, fmt.Sprintf(format, v...))
+ _ = debugLogger.Output(2, fmt.Sprintf(format, v...))
}
}
an> 2008-06-23Make Session inherit from ConfigParser. This allows the usage of normal confi...René 'Necoro' Neumann1-9/+10 2008-06-23German translationRené 'Necoro' Neumann2-144/+228 2008-06-23Finished send_mail workRené 'Necoro' Neumann2-52/+68 2008-06-23Added plugin, which simply throws an exceptionRené 'Necoro' Neumann2-0/+15 2008-06-23Fixed name of gpytage pluginRené 'Necoro' Neumann1-1/+1 2008-06-23Moved GtkThread to gui.utilsRené 'Necoro' Neumann5-29/+25 2008-06-22Implemented the mail sendingRené 'Necoro' Neumann2-3/+63 2008-06-22First mail window draftRené 'Necoro' Neumann3-0/+220 2008-06-10Added gpytage pluginRené 'Necoro' Neumann2-0/+29 2008-06-10Modified plugin.xsd so it allows also menu-only pluginsRené 'Necoro' Neumann2-7/+8 2008-06-10Fixed the default handlingRené 'Necoro' Neumann1-1/+1 2008-06-10Allowed default for session; load 'app-portage/portato' as default for select...René 'Necoro' Neumann2-10/+18 2008-06-09Fixed 'kill' in the systray popupRené 'Necoro' Neumann1-2/+2 2008-06-09Fixed error messageRené 'Necoro' Neumann2-4/+1 2008-06-08Make blocks way more intelligentRené 'Necoro' Neumann3-45/+107