File tree Expand file tree Collapse file tree 18 files changed +27
-24
lines changed
src/WebJobs.Script/Diagnostics
test/WebJobs.Script.Tests Expand file tree Collapse file tree 18 files changed +27
-24
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = function ( context , input ) {
2
- context . log ( " Node.js script processed queue message '" + input . prop1 + "'" ) ;
2
+ context . log ( ' Node.js script processed queue message' , input . prop1 ) ;
3
3
4
4
input . val1 ++ ;
5
5
input . prop1 = "third" ;
Original file line number Diff line number Diff line change 1
1
module . exports = function ( context , blob ) {
2
- context . log ( 'Node.js blob trigger function processed blob %s' , blob ) ;
2
+ context . log ( 'Node.js blob trigger function processed blob' , blob ) ;
3
3
context . done ( null , {
4
4
output : blob
5
5
} ) ;
Original file line number Diff line number Diff line change 1
1
module . exports = function ( context , input ) {
2
- context . log ( 'Node.js queue-triggered DocumentDB function called with input ' + input ) ;
2
+ context . log ( 'Node.js queue-triggered DocumentDB function called with input' , input ) ;
3
3
4
4
context . bindings . item = {
5
5
text : "Hello from Node! " + input
Original file line number Diff line number Diff line change 1
1
module . exports = function ( context , input ) {
2
- context . log ( 'Node.js queue-triggered EasyTable function called with input ' + input ) ;
2
+ context . log ( 'Node.js queue-triggered EasyTable function called with input' , input ) ;
3
3
4
4
context . bindings . item = {
5
5
Text : "Hello from Node! " + input
Original file line number Diff line number Diff line change 1
1
module . exports = function ( context , input ) {
2
- context . log ( 'Node.js manually triggered function called with input %s ' , input ) ;
2
+ context . log ( 'Node.js manually triggered function called with input' , input ) ;
3
3
context . done ( ) ;
4
4
}
Original file line number Diff line number Diff line change 1
1
module . exports = function ( context , input ) {
2
- context . log ( 'Queue triggerd Node.js function input: ' + input ) ;
2
+ context . log ( 'Queue triggerd Node.js function input:' , input ) ;
3
3
context . log ( 'Sending Template Notification...' ) ;
4
+
4
5
context . bindings . notification = {
5
6
message : "Hello from Node! " ,
6
7
location :"Redmond"
7
8
} ;
9
+
8
10
context . done ( ) ;
9
11
}
Original file line number Diff line number Diff line change 1
1
module . exports = function ( context , workItem ) {
2
- context . log ( 'Node.js queue trigger function processed work item %s ' , workItem . id ) ;
2
+ context . log ( 'Node.js queue trigger function processed work item' , workItem . id ) ;
3
3
4
4
context . log ( 'DequeueCount=%s' , context . bindingData . DequeueCount ) ;
5
5
context . log ( 'InsertionTime=%s' , context . bindingData . InsertionTime ) ;
Original file line number Diff line number Diff line change 1
1
module . exports = function ( context , message ) {
2
- context . log ( " Node.js ServiceBus queue trigger function processed message '" + JSON . stringify ( message ) + "'" ) ;
2
+ context . log ( ' Node.js ServiceBus queue trigger function processed message' , message ) ;
3
3
4
4
var result = null ;
5
5
if ( message . count < 1 )
Original file line number Diff line number Diff line change 1
1
module . exports = function ( context , timerInfo ) {
2
2
var timeStamp = new Date ( ) . toISOString ( ) ;
3
- context . log ( 'Node.js timer trigger function ran! %s ' , timeStamp ) ;
3
+ context . log ( 'Node.js timer trigger function ran!' , timeStamp ) ;
4
4
5
- context . log ( 'PastDue: %s ' , timerInfo . isPastDue ) ;
6
- context . log ( 'Last: %s ' , timerInfo . last ) ;
7
- context . log ( 'Next: %s ' , timerInfo . next ) ;
5
+ context . log ( 'PastDue:' , timerInfo . isPastDue ) ;
6
+ context . log ( 'Last:' , timerInfo . last ) ;
7
+ context . log ( 'Next:' , timerInfo . next ) ;
8
8
9
9
context . bindings . message = {
10
10
id : Math . floor ( Math . random ( ) * 10000 ) + 1 ,
Original file line number Diff line number Diff line change 1
1
module . exports = function ( context , data ) {
2
- context . log ( 'GitHub WebHook triggered! %s ' , data . comment . body ) ;
2
+ context . log ( 'GitHub WebHook triggered!' , data . comment . body ) ;
3
3
context . res = {
4
4
body : 'New GitHub comment: ' + data . comment . body
5
5
} ;
You can’t perform that action at this time.
0 commit comments