logs
This commit is contained in:
parent
7fbc196c84
commit
bcc6ea2d29
2 changed files with 3 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ func (s *Scrapper) setupBrowser(ctx context.Context) (string, error) {
|
||||||
chromedp.Navigate("https://www.mandarake.co.jp/index2.html"),
|
chromedp.Navigate("https://www.mandarake.co.jp/index2.html"),
|
||||||
chromedp.WaitReady("body", chromedp.ByQuery),
|
chromedp.WaitReady("body", chromedp.ByQuery),
|
||||||
); err != nil {
|
); err != nil {
|
||||||
log.WithError(err).Error(pkgLogHeader + logGetPrice + "failed to get single price tag")
|
log.WithError(err).Error(pkgLogHeader + "failed to setup browser")
|
||||||
return copyright, err
|
return copyright, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,8 @@ func New(deps Deps) TaskTransport {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *Handler) initConsumer(deps *Deps) error {
|
func (h *Handler) initConsumer(deps *Deps) error {
|
||||||
|
log.WithField("enabled", deps.LoggingEnabled).Debugf("%v rabbit mq logger", pkgLogHeader)
|
||||||
|
|
||||||
client, err := rabbit.NewClient(rabbit.Address{
|
client, err := rabbit.NewClient(rabbit.Address{
|
||||||
Username: deps.Username,
|
Username: deps.Username,
|
||||||
Password: deps.Password,
|
Password: deps.Password,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue