Skip to content

Commit

Permalink
clean up logging a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ruby0x1 committed Mar 17, 2015
1 parent ba45fe2 commit ee8713a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/flow-call.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
flow: function(args, ondataout, ondataerr) {
var pre_args = ['run','flow'];
var use_args = pre_args.concat(args);
log.debug('flow ' + args.join(' '));
log.debug('running: flow ' + args.join(' '));
return exec('haxelib', use_args, ondataout, ondataerr);
},

Expand Down
11 changes: 7 additions & 4 deletions lib/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = {
this.project_valid = false;

log.init();
log.debug('flow plugin init');
state.init(serialized_state);

this.status = new StatusView(this);
Expand Down Expand Up @@ -60,7 +59,11 @@ module.exports = {
var fetch = flow.hxml();

fetch.then(function(res) {
log.success('flow info updated for ' + state.project_path);
if(state.is_consumer) {
log.success('flow info updated for ' + state.project_path);
} else {
log.msg('flow info updated for ' + state.project_path);
}
resolve( res.out );
});

Expand All @@ -70,7 +73,7 @@ module.exports = {

update_hxml: function(dont_set_consumer) {

log.debug('begin: updating project hxml');
// log.debug('begin: updating project hxml');

var hxml = this.fetch_hxml();

Expand All @@ -82,7 +85,7 @@ module.exports = {
this.set_as_consumer();
}

log.debug('end: updating project hxml');
// log.debug('end: updating project hxml');

}.bind(this));

Expand Down

0 comments on commit ee8713a

Please sign in to comment.