Skip to content

Commit

Permalink
stream-controller:better logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mangui committed Feb 1, 2017
1 parent dc04bf1 commit 0ff3e81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controller/audio-stream-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class AudioStreamController extends EventHandler {
if (this.state !== nextState) {
const previousState = this.state;
this._state = nextState;
logger.log(`audio:switch from ${previousState} to ${nextState}`);
logger.log(`audio stream:${previousState}->${nextState}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/controller/stream-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class StreamController extends EventHandler {
if (this.state !== nextState) {
const previousState = this.state;
this._state = nextState;
logger.log(`main:switch from ${previousState} to ${nextState}`);
logger.log(`main stream:${previousState}->${nextState}`);
this.hls.trigger(Event.STREAM_STATE_TRANSITION, {previousState, nextState});
}
}
Expand Down

0 comments on commit 0ff3e81

Please sign in to comment.