Skip to content

Commit 8bc22a3

Browse files
author
Hannah
committed
print to stderr rather than stdout
1 parent c5a386c commit 8bc22a3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/entities_linked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var api = new Api(args.key, args.url);
1414
var endpoint = "entities";
1515

1616
api.parameters.content = "Last month director Paul Feig announced the movie will have an all-star female cast including Kristen Wiig, Melissa McCarthy, Leslie Jones and Kate McKinnon.";
17-
//this parameter is deprecated
17+
// this parameter is deprecated
1818
api.parameters.linked = true;
1919
api.parameters.genre = "social-media";
2020

lib/entities.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ entities.prototype.getResults = function(parameters, userKey, serviceURL, callba
4040

4141
if (parameters.documentFile != null) {
4242
if (parameters.loadParams().linked == true) {
43-
console.log("entities/linked endpoint has been combined with /entities. Do not specify the linked parameter.");
43+
console.warn("entities/linked endpoint has been combined with /entities. Do not specify the linked parameter.");
4444
parameters.loadFile(parameters.loadParams().documentFile, parameters, userKey, serviceURL, "entities/linked", callback);
4545
} else {
4646
parameters.loadFile(parameters.loadParams().documentFile, parameters, userKey, serviceURL, "entities", callback);
@@ -58,7 +58,7 @@ entities.prototype.getResults = function(parameters, userKey, serviceURL, callba
5858
} else {
5959
// configure URL
6060
if (parameters.loadParams().linked == true) {
61-
console.log("entities/linked endpoint is deprecated and has been combined with entities. No need to specify linked parameter.");
61+
console.warn("entities/linked endpoint is deprecated and has been combined with entities. No need to specify linked parameter.");
6262
var urlParts = URL.parse(serviceURL + "entities/linked");
6363
} else {
6464
urlParts = URL.parse(serviceURL + "entities");

0 commit comments

Comments
 (0)