@@ -34,6 +34,7 @@ core.getProblems = function(cb) {
3434 return cb ( null , problems ) ;
3535 }
3636
37+ log . debug ( 'running getProblems' ) ;
3738 var user = this . getUser ( ) ;
3839 client . getProblems ( user , function ( e , problems ) {
3940 if ( e ) return cb ( e ) ;
@@ -65,6 +66,7 @@ core.getProblem = function(keyword, cb) {
6566 return cb ( null , problem ) ;
6667 }
6768
69+ log . debug ( 'running getProblem' ) ;
6870 client . getProblem ( core . getUser ( ) , problem , function ( e , problem ) {
6971 if ( e ) return cb ( e ) ;
7072
@@ -75,18 +77,22 @@ core.getProblem = function(keyword, cb) {
7577} ;
7678
7779core . getSubmissions = function ( problem , cb ) {
80+ log . debug ( 'running getSubmissions' ) ;
7881 client . getSubmissions ( problem , cb ) ;
7982} ;
8083
8184core . getSubmission = function ( submission , cb ) {
85+ log . debug ( 'running getSubmission' ) ;
8286 client . getSubmission ( submission , cb ) ;
8387} ;
8488
8589core . testProblem = function ( problem , cb ) {
90+ log . debug ( 'running testProblem' ) ;
8691 client . testProblem ( problem , cb ) ;
8792} ;
8893
8994core . submitProblem = function ( problem , cb ) {
95+ log . debug ( 'running submitProblem' ) ;
9096 client . submitProblem ( problem , cb ) ;
9197} ;
9298
@@ -113,6 +119,7 @@ core.starProblem = function(problem, starred, cb) {
113119 return cb ( null , starred ) ;
114120 }
115121
122+ log . debug ( 'running starProblem' ) ;
116123 client . starProblem ( this . getUser ( ) , problem , starred , cb ) ;
117124} ;
118125
@@ -151,6 +158,7 @@ core.login = function(user, cb) {
151158 if ( e ) return cb ( e ) ;
152159
153160 saveUser ( user ) ;
161+ log . debug ( 'running getFavorites' ) ;
154162 client . getFavorites ( function ( e , favorites ) {
155163 if ( e ) return cb ( e ) ;
156164
0 commit comments