diff --git a/cmd/main.go b/cmd/main.go index e769508..b8b31d3 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -8,11 +8,16 @@ import ( "os/signal" "syscall" + "git.defalsify.org/vise.git/logging" "git.grassecon.net/grassrootseconomics/visedriver/storage" "git.grassecon.net/grassrootseconomics/sarafu-vise-events/config" "git.grassecon.net/grassrootseconomics/sarafu-vise-events/event/nats" ) +var ( + logg = logging.NewVanilla() +) + func main() { config.LoadConfig() @@ -30,6 +35,8 @@ func main() { os.Exit(1) } + logg.Infof("start command", "conn", connData) + ctx := context.Background() menuStorageService := storage.NewMenuStorageService(connData, "") diff --git a/config/config.go b/config/config.go index b8b3922..8abaead 100644 --- a/config/config.go +++ b/config/config.go @@ -15,7 +15,6 @@ const ( defaultJetstreamClientName string = "omnom" ) - func LoadConfig() error { err := viseconfig.LoadConfig() if err != nil { diff --git a/go.mod b/go.mod index 24d370a..0ed6a9a 100644 --- a/go.mod +++ b/go.mod @@ -4,16 +4,17 @@ go 1.23.4 require ( git.defalsify.org/vise.git v0.2.3-0.20250103172917-3e190a44568d - git.grassecon.net/grassrootseconomics/common v0.0.0-20250112102149-4feac5e490e9 - git.grassecon.net/grassrootseconomics/sarafu-api v0.0.0-20250112121504-be11eea04bc1 - git.grassecon.net/grassrootseconomics/sarafu-vise v0.0.0-20250112121425-f089822300c5 - git.grassecon.net/grassrootseconomics/visedriver v0.8.0-beta.10.0.20250112121325-9e4c65c8b4d1 + git.grassecon.net/grassrootseconomics/common v0.0.0-20250112155828-b55686e830fd + git.grassecon.net/grassrootseconomics/sarafu-api v0.0.0-20250112201720-d80648c7aec3 + git.grassecon.net/grassrootseconomics/sarafu-vise v0.0.0-20250113080019-09e8607b372d + git.grassecon.net/grassrootseconomics/visedriver v0.8.0-beta.10.0.20250112155457-f13dab9a4505 github.com/grassrootseconomics/eth-tracker v1.3.0-rc github.com/grassrootseconomics/ussd-data-service v1.2.0-beta github.com/nats-io/nats.go v1.37.0 ) require ( + github.com/alecthomas/participle/v2 v2.0.0 // indirect github.com/barbashov/iso639-3 v0.0.0-20211020172741-1f4ffb2d8d1c // indirect github.com/fxamacker/cbor/v2 v2.4.0 // indirect github.com/grassrootseconomics/eth-custodial v1.3.0-beta // indirect diff --git a/go.sum b/go.sum index ab1db6b..c4d1fb6 100644 --- a/go.sum +++ b/go.sum @@ -1,15 +1,17 @@ git.defalsify.org/vise.git v0.2.3-0.20250103172917-3e190a44568d h1:bPAOVZOX4frSGhfOdcj7kc555f8dc9DmMd2YAyC2AMw= git.defalsify.org/vise.git v0.2.3-0.20250103172917-3e190a44568d/go.mod h1:jyBMe1qTYUz3mmuoC9JQ/TvFeW0vTanCUcPu3H8p4Ck= -git.grassecon.net/grassrootseconomics/common v0.0.0-20250112102149-4feac5e490e9 h1:dQ8DtiOUPzzXYgZw6REnIc1dhb3PzCEfN01Rd7Pbw+o= -git.grassecon.net/grassrootseconomics/common v0.0.0-20250112102149-4feac5e490e9/go.mod h1:wgQJZGIS6QuNLHqDhcsvehsbn5PvgV7aziRebMnJi60= -git.grassecon.net/grassrootseconomics/sarafu-api v0.0.0-20250112121504-be11eea04bc1 h1:by6Qw5q4Bsbio92NolxMXzbxsX3VUeAxVadTzXynOAo= -git.grassecon.net/grassrootseconomics/sarafu-api v0.0.0-20250112121504-be11eea04bc1/go.mod h1:SiWT0rbK9QhFpmpAbXOtararIKDmiaAcFLHMCqKibKg= -git.grassecon.net/grassrootseconomics/sarafu-vise v0.0.0-20250112121425-f089822300c5 h1:ZcwIwrjimtjMdt5qpqSpyIoZ1GR8TARQP6vSdp0kqZA= -git.grassecon.net/grassrootseconomics/sarafu-vise v0.0.0-20250112121425-f089822300c5/go.mod h1:dIkSSoB16SHk0Gu/TBH63FohyjTZAJ1voywBsRYscuI= -git.grassecon.net/grassrootseconomics/visedriver v0.8.0-beta.10.0.20250112121325-9e4c65c8b4d1 h1:RfU5/WFfPxDptlkyx4MT+4YmO79sY6HvIngUq5uwQPU= -git.grassecon.net/grassrootseconomics/visedriver v0.8.0-beta.10.0.20250112121325-9e4c65c8b4d1/go.mod h1:E6W7ZOa7ZvVr0Bc5ot0LNSwpSPYq4hXlAIvEPy3AJ7U= +git.grassecon.net/grassrootseconomics/common v0.0.0-20250112155828-b55686e830fd h1:OG20aG/sC5yNaU2/rzoAKYp2f0u4lmGP5/Qax8UQD5c= +git.grassecon.net/grassrootseconomics/common v0.0.0-20250112155828-b55686e830fd/go.mod h1:wgQJZGIS6QuNLHqDhcsvehsbn5PvgV7aziRebMnJi60= +git.grassecon.net/grassrootseconomics/sarafu-api v0.0.0-20250112201720-d80648c7aec3 h1:z1rfjyWxb1vuoOPWnws72oD0kD99NhPiIkkYmUTcrDY= +git.grassecon.net/grassrootseconomics/sarafu-api v0.0.0-20250112201720-d80648c7aec3/go.mod h1:PEjJnAH5gYcjb4RRevaPCswa5VGGNqHSuyapZvIVR6w= +git.grassecon.net/grassrootseconomics/sarafu-vise v0.0.0-20250113080019-09e8607b372d h1:fhFggN7aNjr0uObPukqqnVBwysY3PsYUDrScfFf6WUY= +git.grassecon.net/grassrootseconomics/sarafu-vise v0.0.0-20250113080019-09e8607b372d/go.mod h1:jrXw0NQtQYQtbN/vo9NhXjVvRv/3juAHDxDcZahSqF4= +git.grassecon.net/grassrootseconomics/visedriver v0.8.0-beta.10.0.20250112155457-f13dab9a4505 h1:2cGl8MWGjvOd7XiQiI9guu7N+95Ecpdn7l4M6PI7EiA= +git.grassecon.net/grassrootseconomics/visedriver v0.8.0-beta.10.0.20250112155457-f13dab9a4505/go.mod h1:E6W7ZOa7ZvVr0Bc5ot0LNSwpSPYq4hXlAIvEPy3AJ7U= github.com/alecthomas/assert/v2 v2.2.2 h1:Z/iVC0xZfWTaFNE6bA3z07T86hd45Xe2eLt6WVy2bbk= github.com/alecthomas/assert/v2 v2.2.2/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ= +github.com/alecthomas/participle/v2 v2.0.0 h1:Fgrq+MbuSsJwIkw3fEj9h75vDP0Er5JzepJ0/HNHv0g= +github.com/alecthomas/participle/v2 v2.0.0/go.mod h1:rAKZdJldHu8084ojcWevWAL8KmEU+AT+Olodb+WoN2Y= github.com/alecthomas/repr v0.2.0 h1:HAzS41CIzNW5syS8Mf9UwXhNH1J9aix/BvDRf1Ml2Yk= github.com/alecthomas/repr v0.2.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= github.com/barbashov/iso639-3 v0.0.0-20211020172741-1f4ffb2d8d1c h1:H9Nm+I7Cg/YVPpEV1RzU3Wq2pjamPc/UtHDgItcb7lE= @@ -57,6 +59,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=