oops, remove logging
This commit is contained in:
parent
9d0ab0b818
commit
ce3be6946e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user