remove: too many debug calls

This commit is contained in:
Tobias Reisinger 2020-08-25 10:50:31 +02:00
parent f91e0bffb1
commit ce674a746a
2 changed files with 1 additions and 6 deletions

View file

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7) cmake_minimum_required (VERSION 3.7)
project(controller project(controller
VERSION 0.3.2 VERSION 0.3.3
LANGUAGES C) LANGUAGES C)
add_executable(controller src/main.c) add_executable(controller src/main.c)

View file

@ -93,7 +93,6 @@ handler_command_relay_name_set(mpack_node_t map)
return; return;
} }
relay_set_name(global_controller->relays[relay_num], relay_name); relay_set_name(global_controller->relays[relay_num], relay_name);
relay_debug(global_controller->relays[relay_num]);
LOGGER_DEBUG("setting new name %s for relay %d\n", relay_name, relay_num); LOGGER_DEBUG("setting new name %s for relay %d\n", relay_name, relay_num);
relay_save(global_controller->relays[relay_num]); relay_save(global_controller->relays[relay_num]);
} }
@ -118,7 +117,6 @@ handler_command_schedule_update(mpack_node_t map)
} }
schedule_save(new_schedule); schedule_save(new_schedule);
schedule_debug(new_schedule);
int *relay_ids = junction_relay_schedule_get_relay_ids_with_schedule(new_schedule->id); int *relay_ids = junction_relay_schedule_get_relay_ids_with_schedule(new_schedule->id);
@ -178,14 +176,11 @@ handler_command_relay_schedules_set(mpack_node_t map)
} }
schedule_save(new_schedule); schedule_save(new_schedule);
schedule_debug(new_schedule);
relay_debug(target_relay);
junction_relay_schedule_insert(i, target_relay->id, new_schedule->id); junction_relay_schedule_insert(i, target_relay->id, new_schedule->id);
} }
relay_reload_schedules(target_relay); relay_reload_schedules(target_relay);
relay_debug(target_relay);
database_transaction_commit(); database_transaction_commit();
} }