added a debug function
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Sun, 19 Jul 2015 21:34:01 +0000 (17:34 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 7 Dec 2015 18:16:28 +0000 (13:16 -0500)
edward
edward_config.py

diff --git a/edward b/edward
index 24820257b8fdac799446ea89087d903c13909447..fc8616fbd9b740cfdf2c42222f499e0c91e04c87 100755 (executable)
--- a/edward
+++ b/edward
@@ -301,6 +301,12 @@ def encrypt_sign_message (plaintext, encrypt_to_key, sign_with_fingerprint, gpgm
     return encrypted_txt
 
 
+def debug (debug_msg):
+
+    if edward_config.debug == True:
+        sys.stderr.write(debug_msg + "\n")
+
+
 def handle_args ():
     if __name__ == "__main__":
 
index 37ca1e360dc6ab0f4489443d8e9c74973c7c8e18..68446ef3977e6f7dd74971439b149cdb78a819e2 100644 (file)
@@ -28,3 +28,5 @@ Code sourced from these projects:
 gnupghome = "/home/e/edward/.gnupg/"
 sign_with_key = "F357AA1A5B1FA42CFD9FE52A9FF2194CC09A61E8"
 
+debug = False
+