summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-22 08:55:59 -0500
committerJeff Carr <[email protected]>2025-08-22 08:55:59 -0500
commite6737ba6357622807cac01c30710f19a668f452f (patch)
tree73970ff16ccc326ccf9bcdb4c8dae646cf46cc1d
parent249c2a97b8b5d535cda6e03d8d38374bc90e53d6 (diff)
fix log output
-rw-r--r--doOutput.go8
-rw-r--r--main.go1
2 files changed, 7 insertions, 2 deletions
diff --git a/doOutput.go b/doOutput.go
index 2db39ae..b979b5c 100644
--- a/doOutput.go
+++ b/doOutput.go
@@ -1,12 +1,14 @@
package main
import (
- "log"
"os"
+
+ "go.wit.com/log"
)
func doOutput(s string) {
- f, err := os.OpenFile("/tmp/gemini-output.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
+ filename := "/tmp/gemini-output.log"
+ f, err := os.OpenFile(filename, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
log.Println(err)
return
@@ -15,4 +17,6 @@ func doOutput(s string) {
if _, err := f.WriteString(s + "\n"); err != nil {
log.Println(err)
}
+
+ log.Info("OUTPUT LOGGED TO", filename)
}
diff --git a/main.go b/main.go
index 40811a1..9e1daa2 100644
--- a/main.go
+++ b/main.go
@@ -67,6 +67,7 @@ func main() {
for _, newChat := range newChats.GetChats() {
me.chats.AppendByUuid(newChat)
+ log.Info("Attempting to add chat", newChat.ChatName)
}
me.chats.ConfigSave()