Adding servers API url to log file

This commit is contained in:
silversword411 2023-08-23 17:49:03 -04:00 committed by GitHub
parent 0777195423
commit fbdd47d0f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ package agent
import ( import (
"fmt" "fmt"
"os" "os"asdf
"runtime" "runtime"
"strconv" "strconv"
"sync" "sync"
@ -51,7 +51,7 @@ var (
) )
func (a *Agent) RunRPC() { func (a *Agent) RunRPC() {
a.Logger.Infoln("Agent service started") a.Logger.Infoln("Agent service started", a.ApiURL)
opts := a.setupNatsOptions() opts := a.setupNatsOptions()
nc, err := nats.Connect(a.NatsServer, opts...) nc, err := nats.Connect(a.NatsServer, opts...)