debug
This commit is contained in:
parent
85920cc59a
commit
a66c68a763
1
bot.go
1
bot.go
@ -736,6 +736,7 @@ func botVault(m *tb.Message, itemTypeList []int64) {
|
|||||||
p.ItemTypeListID64 = append(p.ItemTypeListID64, itemTypeList...)
|
p.ItemTypeListID64 = append(p.ItemTypeListID64, itemTypeList...)
|
||||||
|
|
||||||
b, _ := json.Marshal(p)
|
b, _ := json.Marshal(p)
|
||||||
|
log.Printf("botVault:\n%s\n", string(b))
|
||||||
t := time.Now().UTC()
|
t := time.Now().UTC()
|
||||||
_, err := createJob(objSubTypeJobVaultStatus, objJobPriority, int64(m.Sender.ID), 0, t, b)
|
_, err := createJob(objSubTypeJobVaultStatus, objJobPriority, int64(m.Sender.ID), 0, t, b)
|
||||||
|
|
||||||
|
2
main.go
2
main.go
@ -90,8 +90,6 @@ func main() {
|
|||||||
err := gcfg.ReadFileInto(&cfg, *config)
|
err := gcfg.ReadFileInto(&cfg, *config)
|
||||||
failOnError(err, "Parsing config")
|
failOnError(err, "Parsing config")
|
||||||
|
|
||||||
log.Printf("DepositChat : %d\n", cfg.Bot.Depositchat)
|
|
||||||
|
|
||||||
// Connecting to DB
|
// Connecting to DB
|
||||||
switch cfg.SQL.Driver {
|
switch cfg.SQL.Driver {
|
||||||
case "mysql":
|
case "mysql":
|
||||||
|
Loading…
Reference in New Issue
Block a user