Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/parser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

var logUnknownTag = require('debug')('ipp:unknown-tag');

var enums = require('./enums'),
operations = enums['operations-supported'],
Expand Down Expand Up @@ -129,7 +129,6 @@ module.exports = function(buf) {

case tags['no-value']:
default:
debugger;
return module.exports.handleUnknownTag(tag, name, length, read)
}
}
Expand Down Expand Up @@ -190,7 +189,7 @@ module.exports = function(buf) {
};
module.exports.handleUnknownTag = function log(tag, name, length, read) {
var value = length? read(length) : undefined;
console.log("The spec is not clear on how to handle tag " +tag+ ": " +name+ "=" +String(value)+ ". " +
logUnknownTag("The spec is not clear on how to handle tag " +tag+ ": " +name+ "=" +String(value)+ ". " +
"Please open a github issue to help find a solution!");
return value;
};
1 change: 0 additions & 1 deletion lib/serializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ module.exports = function serializer(msg){
return write2(0);

default:
debugger;
console.error(tag, "not handled");
}
}
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"name": "William Kapke",
"email": "william.kapke@gmail.com"
},
"dependencies": {
"debug": "^4.1.1"
},
"devDependencies": {
"concat-stream": "^1.6.0",
"mdns": "^2.3.3",
Expand Down