Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 040947e

Browse files
committed
more logs
1 parent ad96046 commit 040947e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/js/services.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ angular.module('app.services', []).factory('model', function($rootScope) {
1010
var callbacks_ = function(callback) {
1111
return {
1212
success: function(model) {
13+
console.log('success for ' + service.schema + ' with: ' + model);
1314
service.model = model;
1415
model.toJSON ? callback(model.toJSON()) : callback(model);
1516
},
1617
error: function(reason) {
1718
window.alert(reason);
18-
log(reason);
19+
console.log(reason);
1920
}
2021
};
2122
};
@@ -49,6 +50,7 @@ service('user', function(model) {
4950
var instance = model('user');
5051
instance.modelProvider = StackMob.User;
5152
instance.login = function(username, password, callback) {
53+
console.log('Logging in: ' + username + ' ' + password);
5254
instance.model = new instance.modelProvider({'username': username,
5355
'password': password});
5456
var options = instance.callbacks_(callback);

0 commit comments

Comments
 (0)