Skip to content

Commit

Permalink
rename logging label
Browse files Browse the repository at this point in the history
  • Loading branch information
jforbes committed Dec 12, 2017
1 parent f87f8fe commit e3ff37a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/util/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import videojs from 'video.js';

const logger = (source) => {
if (videojs.log.debug) {
return videojs.log.debug.bind(videojs, '[VHS]', `${source} >`);
return videojs.log.debug.bind(videojs, 'VHS:', `${source} >`);
}

return function() {};
Expand Down
3 changes: 1 addition & 2 deletions src/videojs-http-streaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,7 @@ class HlsHandler extends Component {
timestamp: Date.now(),
currentSource: this.tech_.currentSource_,
master: this.playlists.master,
currentTech: this.tech_.name_,
history: videojs.log.history().filter(([_, type]) => type === '[VHS]')
currentTech: this.tech_.name_
};
}
}
Expand Down

0 comments on commit e3ff37a

Please sign in to comment.