Skip to content

Commit c4a048b

Browse files
author
Andrew Bate
committed
Log 'desc' as well as 'message' to the log service.
1 parent 83745d7 commit c4a048b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2.1.2 (2016-10-25)
2+
3+
Bug fix:
4+
5+
- Log 'message' and 'desc' params correctly via the logger.
6+
17
## 2.1.1 (2016-02-24)
28

39
Bug fix:

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "app-logger-angular",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"main": "./js/logging.js",
55
"description": "Client side logging sent to the server",
66
"repository": {

js/logging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ loggingModule.factory(
123123
angularLogSeverity = 'log';
124124
}
125125

126-
$log[angularLogSeverity].apply($log, [message]);
126+
$log[angularLogSeverity](message, desc);
127127
}
128128

129129
// check if the config says we should log to the remote, and also if a remote endpoint was specified

0 commit comments

Comments
 (0)