You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,14 @@ If you are running the application in a production way locally(E.g. adding VCAP_
143
143
}
144
144
```
145
145
146
+
If you are running the application in offline mode which is without remote connection to the online environment, you can add the environmental variable `PRINT_CONSOLE_MODE=true cds watch` in the `package.json` as shown below.
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/cap-js/print/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md).
logger.error('Error in sending to print queue: ',e.response?.data?.error?.message);
131
+
returnreq.error('Print task failed');
132
+
}
133
+
logger.info(`Document sent to print queue ${qname}`);
134
+
returnreq.info(200,`Document sent to print queue ${qname} \n
135
+
No. of copies requested: ${numberOfCopies}`);
136
+
}else{// Offline / Console Mode
137
+
docsToPrint.forEach((doc)=>{
138
+
logger.info(`Document ${doc.fileName} with object key ${doc.objectKey} and content length ${doc.content.length} has been sent to print queue ${qname}`);
139
+
});
112
140
}
113
-
logger.info(`Document sent to print queue ${qname}`);
114
-
returnreq.info(200,`Document sent to print queue ${qname} \n
0 commit comments