Skip to content

Commit

Permalink
🎨 Add some temp logs to help debug siyuan-note/siyuan#10205
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 17, 2024
1 parent 36bb80f commit eaa883f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package dejavu

import (
"bytes"
"errors"
"fmt"
"io"
Expand Down Expand Up @@ -590,6 +591,16 @@ func (repo *Repo) index0(memo string, context map[string]interface{}) (ret *enti
return
}

// TODO Add some temp logs to help debug https://github.com/siyuan-note/siyuan/issues/10205
fileLogs := bytes.Buffer{}
fileLogs.WriteString("\n")
for _, f := range files {
fileLogs.WriteString("\t")
fileLogs.WriteString(f.Path + ", " + time.UnixMilli(f.Updated).Format("2006-01-02 15:04:05"))
fileLogs.WriteString("\n")
}
logging.LogInfof("%s", fileLogs.String())

latest, err := repo.Latest()
init := false
if nil != err {
Expand Down

0 comments on commit eaa883f

Please sign in to comment.