aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/deleted.py4
-rw-r--r--examples/echo.py4
-rw-r--r--examples/edits.py4
-rw-r--r--examples/reply.py4
4 files changed, 16 insertions, 0 deletions
diff --git a/examples/deleted.py b/examples/deleted.py
index 3b6b9897..3bd38ec3 100644
--- a/examples/deleted.py
+++ b/examples/deleted.py
@@ -1,4 +1,8 @@
import discord
+import logging
+
+# Set up the logging module to output diagnostic to the console.
+logging.basicConfig()
client = discord.Client()
client.login('email', 'password')
diff --git a/examples/echo.py b/examples/echo.py
index d2b4b20f..21908533 100644
--- a/examples/echo.py
+++ b/examples/echo.py
@@ -1,4 +1,8 @@
import discord
+import logging
+
+# Set up the logging module to output diagnostic to the console.
+logging.basicConfig()
client = discord.Client()
client.login('email', 'password')
diff --git a/examples/edits.py b/examples/edits.py
index cb07dc6b..3bf375dc 100644
--- a/examples/edits.py
+++ b/examples/edits.py
@@ -1,5 +1,9 @@
import discord
import time
+import logging
+
+# Set up the logging module to output diagnostic to the console.
+logging.basicConfig()
client = discord.Client()
client.login('email', 'password')
diff --git a/examples/reply.py b/examples/reply.py
index 0697704d..e23db962 100644
--- a/examples/reply.py
+++ b/examples/reply.py
@@ -1,4 +1,8 @@
import discord
+import logging
+
+# Set up the logging module to output diagnostic to the console.
+logging.basicConfig()
client = discord.Client()
client.login('email', 'password')