diff --git a/MAC/TBB/lib/tbb_restart_recording.py b/MAC/TBB/lib/tbb_restart_recording.py
index b794b7ef094e621a5e561e0e746edb2e7ce2ddcf..1e56e958c732fb9285d8cc62ca7dfeefbf8dff2d 100755
--- a/MAC/TBB/lib/tbb_restart_recording.py
+++ b/MAC/TBB/lib/tbb_restart_recording.py
@@ -16,11 +16,11 @@ from lofar.common.lcu_utils import translate_user_station_string_into_station_li
 
 
 def restart_tbb_recording(stations):
-    logging.info("Restarting TBB recording")
-
     stations = translate_user_station_string_into_station_list(stations)
     station_hostname_csv_string = ','.join(stationname2hostname(s) for s in stations)
 
+    logging.info("Restarting TBB recording on stations %s", stations)
+
     relay = lcurun_command + [station_hostname_csv_string]
     cmd = relay + [tbb_command, "--record"]
     logging.info("Executing %s" % " ".join(cmd))
@@ -35,3 +35,7 @@ def parse_args():
 def main():
     args = parse_args()
     restart_tbb_recording(args.stations)
+
+if __name__ == '__main__':
+    logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', level=logging.INFO)
+    main()
\ No newline at end of file