Skip to content

Commit

Permalink
Cleaned up debug printing
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmatta committed Mar 4, 2018
1 parent b0545df commit ffa982b
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 24 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ There is sample Generator plugin about using photoshop-generator-core that enabl
- NPM: https://www.npmjs.com/package/photoshop-generator-sample

## Changelog
### v4.1.0
### v4.1.1
- New methods layerGetNextLayer and layerGetPreviousLayer for finding the next/previous entry in the layer list
- Cleaned up debug printing

### v4.01
V4.0.1 is a backwards incompatible change to v3.x and will require code changes
Expand Down
2 changes: 1 addition & 1 deletion documentation/Generator.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
6 changes: 3 additions & 3 deletions documentation/generator_core.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ <h1 class="page-title">Source: generator_core.js</h1>
var request_path = url.pathname.split('/');
if (url.pathname[0]=='/')
request_path.shift();
Generator.logDebug("_onServerRequest", "path=" + url.pathname + ", path_parts=" +request_path )
// Generator.logDebug("_onServerRequest", "path=" + url.pathname + ", path_parts=" +request_path )

response.setHeader("Access-Control-Allow-Origin", "*") // needed for browser debugging
if (Generator._serverValidator &amp;&amp; !Generator._serverValidator(request)) {
Expand Down Expand Up @@ -1692,7 +1692,7 @@ <h1 class="page-title">Source: generator_core.js</h1>
// Generator.logDebug("photoshopExecuteScript", "script="+str)
Generator._instance.evaluateJSXString(str).then(
function(result){
Generator.logDebug("photoshopExecuteScript", "result="+result)
// Generator.logDebug("photoshopExecuteScript", "result="+result)
if (callback) { callback(result) }
},
function(err){
Expand Down Expand Up @@ -2902,7 +2902,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
5 changes: 3 additions & 2 deletions documentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ <h2>Sample Plugin</h2><p>There is sample Generator plugin about using photoshop-
<li>Github: https://github.com/RationalMatta/photoshop-generator-sample</li>
<li>NPM: https://www.npmjs.com/package/photoshop-generator-sample</li>
</ul>
<h2>Changelog</h2><h3>v4.1</h3><ul>
<h2>Changelog</h2><h3>v4.1.1</h3><ul>
<li>New methods layerGetNextLayer and layerGetPreviousLayer for finding the next/previous entry in the layer list</li>
<li>Cleaned up debug printing</li>
</ul>
<h3>v4.01</h3><p>V4.0.1 is a backwards incompatible change to v3.x and will require code changes</p>
<ul>
Expand Down Expand Up @@ -114,7 +115,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-delta.html
Original file line number Diff line number Diff line change
Expand Up @@ -3518,7 +3518,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-directory.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-document.html
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-file.html
Original file line number Diff line number Diff line change
Expand Up @@ -3497,7 +3497,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-http.html
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-json.html
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-layer.html
Original file line number Diff line number Diff line change
Expand Up @@ -6181,7 +6181,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-log.html
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-photoshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-png.html
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-server.html
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-system.html
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion documentation/module-util.html
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-de
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Wed Feb 28 2018 21:45:07 GMT+0200 (FLE Standard Time)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
</footer>

<script> prettyPrint(); </script>
Expand Down
4 changes: 2 additions & 2 deletions generator_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ var Generator = {
var request_path = url.pathname.split('/');
if (url.pathname[0]=='/')
request_path.shift();
Generator.logDebug("_onServerRequest", "path=" + url.pathname + ", path_parts=" +request_path )
// Generator.logDebug("_onServerRequest", "path=" + url.pathname + ", path_parts=" +request_path )

response.setHeader("Access-Control-Allow-Origin", "*") // needed for browser debugging
if (Generator._serverValidator && !Generator._serverValidator(request)) {
Expand Down Expand Up @@ -1664,7 +1664,7 @@ var Generator = {
// Generator.logDebug("photoshopExecuteScript", "script="+str)
Generator._instance.evaluateJSXString(str).then(
function(result){
Generator.logDebug("photoshopExecuteScript", "result="+result)
// Generator.logDebug("photoshopExecuteScript", "result="+result)
if (callback) { callback(result) }
},
function(err){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "photoshop-generator-core",
"version": "4.1.0",
"version": "4.1.1",
"description": "Module for creating Photoshop Generator plugins",
"main": "generator_core.js",
"keywords": [
Expand Down

0 comments on commit ffa982b

Please sign in to comment.