Update the format for sync workers' loggers.
This commit is contained in:
@@ -10,7 +10,7 @@ defmodule DecentralisedBookIndex.SyncWorker do
|
|||||||
|
|
||||||
@impl Oban.Worker
|
@impl Oban.Worker
|
||||||
def perform(%Oban.Job{args: args} = job) do
|
def perform(%Oban.Job{args: args} = job) do
|
||||||
Logger.info("The cron job (#{job.id}) run SyncServerTask at #{DateTime.utc_now()} with args: #{inspect(args)}")
|
Logger.info("The cron job (#{job.id}) run SyncServerTask at #{DateTime.utc_now()} with args: #{inspect(args)}.")
|
||||||
|
|
||||||
result = SyncServerTask.sync_all()
|
result = SyncServerTask.sync_all()
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ defmodule DecentralisedBookIndex.SyncWorkerManual do
|
|||||||
|
|
||||||
@impl Oban.Worker
|
@impl Oban.Worker
|
||||||
def perform(%Oban.Job{args: args} = job) do
|
def perform(%Oban.Job{args: args} = job) do
|
||||||
Logger.info("The manual job (#{job.id}) run SyncServerTask at #{DateTime.utc_now()} with args: #{inspect(args)}")
|
Logger.info("The manual job (#{job.id}) run SyncServerTask at #{DateTime.utc_now()} with args: #{inspect(args)}.")
|
||||||
|
|
||||||
result = SyncServerTask.sync_all()
|
result = SyncServerTask.sync_all()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user