summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/sched.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/sched.c b/main/sched.c
index 5fc0ef9ed..851e07db5 100644
--- a/main/sched.c
+++ b/main/sched.c
@@ -281,7 +281,8 @@ int ast_sched_del(struct sched_context *con, int id)
ast_mutex_unlock(&con->lock);
if (!s) {
- ast_log(LOG_NOTICE, "Attempted to delete nonexistent schedule entry %d!\n", id);
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Attempted to delete nonexistent schedule entry %d!\n", id);
#ifdef DO_CRASH
CRASH;
#endif