Skip to content

Commit

Permalink
Remove misleading logging in DrmEngine#fillInDrmInfoDefaults_ (#1288)
Browse files Browse the repository at this point in the history
Closes #1284
  • Loading branch information
chrisfillmore authored and joeyparrish committed Feb 20, 2018
1 parent 4004bd4 commit 792775c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/media/drm_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,6 @@ shaka.media.DrmEngine.prototype.fillInDrmInfoDefaults_ = function(drmInfo) {
var server = this.config_.servers[keySystem];
if (server) {
drmInfo.licenseServerUri = server;
} else {
shaka.log.error('No license server configured for ' + keySystem);
}
}

Expand Down
2 changes: 0 additions & 2 deletions test/media/drm_engine_unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,12 +497,10 @@ describe('DrmEngine', function() {
requestMediaKeySystemAccessSpy.and.callFake(
fakeRequestMediaKeySystemAccess.bind(null, ['drm.abc']));

logErrorSpy.and.stub();
config.servers = {};
drmEngine.configure(config);

drmEngine.init(manifest, /* offline */ false).then(fail, function(error) {
expect(logErrorSpy).toHaveBeenCalled();
shaka.test.Util.expectToEqualError(error, new shaka.util.Error(
shaka.util.Error.Severity.CRITICAL,
shaka.util.Error.Category.DRM,
Expand Down

0 comments on commit 792775c

Please sign in to comment.