added log info
Change-Id: Ib577abf824f2fd8008721c648de45626bd724189 Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
parent
3395ac763d
commit
b983f9d85a
|
@ -11,7 +11,6 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
use App\Services\Apis\MuxCredentials;
|
||||
use App\Services\Model\IPresentationVideoMediaUploadProcessor;
|
||||
use Illuminate\Bus\Queueable;
|
||||
|
@ -58,10 +57,22 @@ class CreateVideosFromMUXAssetsForSummitJob implements ShouldQueue
|
|||
*/
|
||||
public function __construct(int $summit_id, string $mux_token_id, string $mux_token_secret, ?string $email_to)
|
||||
{
|
||||
Log::debug
|
||||
(
|
||||
sprintf
|
||||
(
|
||||
"CreateVideosFromMUXAssetsForSummitJob::__construct summit %s token id %s token secret %s mail_to %s",
|
||||
$summit_id,
|
||||
$mux_token_id,
|
||||
$mux_token_secret,
|
||||
$email_to
|
||||
)
|
||||
);
|
||||
|
||||
$this->summit_id = $summit_id;
|
||||
$this->email_to = $email_to;
|
||||
$this->mux_token_id = $mux_token_id;
|
||||
$this->mux_token_secret = $mux_token_secret;
|
||||
$this->email_to = $email_to;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -69,7 +80,17 @@ class CreateVideosFromMUXAssetsForSummitJob implements ShouldQueue
|
|||
*/
|
||||
public function handle(IPresentationVideoMediaUploadProcessor $service){
|
||||
|
||||
Log::debug(sprintf("CreateVideosFromMUXAssetsForSummit::handle summit %s", $this->summit_id));
|
||||
Log::debug
|
||||
(
|
||||
sprintf
|
||||
(
|
||||
"CreateVideosFromMUXAssetsForSummit::handle summit %s token id %s token secret %s mail_to %s",
|
||||
$this->summit_id,
|
||||
$this->mux_token_id,
|
||||
$this->mux_token_secret,
|
||||
$this->email_to
|
||||
)
|
||||
);
|
||||
|
||||
try {
|
||||
$service->createVideosFromMUXAssets
|
||||
|
|
|
@ -76,7 +76,17 @@ class VideoStreamUrlMUXProcessingForSummitJob implements ShouldQueue
|
|||
*/
|
||||
public function handle(IPresentationVideoMediaUploadProcessor $service){
|
||||
|
||||
Log::debug(sprintf("VideoStreamUrlMUXProcessingForSummitJob::handle summit %s", $this->summit_id));
|
||||
Log::debug
|
||||
(
|
||||
sprintf
|
||||
(
|
||||
"VideoStreamUrlMUXProcessingForSummitJob::handle summit %s token id %s token secret %s mail_to %s",
|
||||
$this->summit_id,
|
||||
$this->mux_token_id,
|
||||
$this->mux_token_secret,
|
||||
$this->email_to
|
||||
)
|
||||
);
|
||||
|
||||
try {
|
||||
$service->processSummitEventsStreamURLs
|
||||
|
|
|
@ -56,4 +56,9 @@ final class MuxCredentials
|
|||
{
|
||||
return $this->token_secret;
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return sprintf("id %s secret %s", $this->token_id, $this->token_secret);
|
||||
}
|
||||
}
|
|
@ -284,8 +284,20 @@ final class PresentationVideoMediaUploadProcessor
|
|||
?string $mail_to
|
||||
): int
|
||||
{
|
||||
|
||||
Log::debug
|
||||
(
|
||||
sprintf
|
||||
(
|
||||
"PresentationVideoMediaUploadProcessor::processSummitEventsStreamURLs Summit %s Credentials %s mail to %s",
|
||||
$summit_id,
|
||||
$credentials,
|
||||
$mail_to
|
||||
)
|
||||
);
|
||||
|
||||
$event_ids = [];
|
||||
$excerpt = 'Starting MUX Assets Enabling MP4 Support Process.'.PHP_EOL;
|
||||
$excerpt = sprintf('Starting MUX Assets Enabling MP4 Support Process Summit %s.', $summit_id).PHP_EOL;
|
||||
|
||||
try {
|
||||
$event_ids = $this->tx_service->transaction(function () use ($summit_id) {
|
||||
|
@ -366,7 +378,7 @@ final class PresentationVideoMediaUploadProcessor
|
|||
$credentials->getTokenId(),
|
||||
$credentials->getTokenSecret(),
|
||||
$mail_to
|
||||
)->delay(now()->addMinutes(30));
|
||||
)->delay(now()->addMinutes(1));
|
||||
}
|
||||
|
||||
return count($event_ids);
|
||||
|
@ -383,8 +395,18 @@ final class PresentationVideoMediaUploadProcessor
|
|||
MuxCredentials $credentials,
|
||||
?string $mail_to): int
|
||||
{
|
||||
Log::debug
|
||||
(
|
||||
sprintf
|
||||
(
|
||||
"PresentationVideoMediaUploadProcessor::createVideosFromMUXAssets Summit %s Credentials %s mail to %s",
|
||||
$summit_id,
|
||||
$credentials,
|
||||
$mail_to
|
||||
)
|
||||
);
|
||||
$event_ids = [];
|
||||
$excerpt = 'Starting Create Videos From MUX Assets Process.'.PHP_EOL;
|
||||
$excerpt = sprintf('Starting Create Videos From MUX Assets Process Summit %s.', $summit_id).PHP_EOL;
|
||||
try {
|
||||
$event_ids = $this->tx_service->transaction(function () use ($summit_id) {
|
||||
return $this->event_repository->getPublishedEventsIdsBySummit($summit_id);
|
||||
|
|
Loading…
Reference in New Issue