oops, remove logging

This commit is contained in:
stryan 2023-10-12 21:53:09 -04:00
parent 9d0ab0b818
commit ce3be6946e

View File

@ -1,7 +1,6 @@
package matrixbotlib
import (
"log"
"os"
"strings"
@ -49,8 +48,6 @@ func NewMatrixClient(config *MatrixClientConfig, store mautrix.Storer) (*mautrix
}
func SyncToken(config *MatrixClientConfig) error {
log.Println("syncing token")
t := make(map[string]interface{})
data, err := os.ReadFile(config.filename)
if err != nil {
@ -60,7 +57,6 @@ func SyncToken(config *MatrixClientConfig) error {
if err != nil {
return err
}
log.Println(t)
t["token"] = config.Token
file, err := os.OpenFile(config.filename, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o600)
if err != nil {