Skip to content

Commit

Permalink
Log useful stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
gseguin committed Jun 28, 2012
1 parent 1d693a8 commit 20be02e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ function checkout( project, force, callback ){
}

function getFirstExistingDir( candidates, callback ) {
console.log( "getFirstExistingDir" );
var dir = candidates.shift();
path.exists( dir , function( exists ) {
if ( exists ) {
Expand Down
5 changes: 5 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ function buildDependencyMap( project, baseUrl, include ) {
compileDir = project.getCompiledDirSync(),
filename = "",
getFiles = function( dir, filterFn, mapFn, callback ) {
// Recurse through directories in dir and collect a list of files that gets filtered by filterFn
// The resulting list is processed by mapFn (remove extension for instance)
fs.readdir( dir, function( err, dirEntries ) {
// console.log( "buildDependencyMap["+id+"](): step 1.1" );
var filteredFiles, include;
Expand Down Expand Up @@ -718,6 +720,9 @@ app.get( '/v1/bundle/:owner/:repo/:ref/:name?', function ( req, res ) {
}

digest = shasum.digest( 'hex' );

console.log( digest + ": " + JSON.stringify( config ) );

if ( filter ) {
// Setting the flag for later clean up
filters[ project.getWorkspaceDirSync() ] = filters[ project.getWorkspaceDirSync() ] || {};
Expand Down

0 comments on commit 20be02e

Please sign in to comment.