 json = (out) -> misc.trunc(misc.to_json(out),512)
 
 {ensure_containing_directory_exists, abspath} = misc_node
+
+# Uncomment these 2 lines to set the log level to "debug" in order to see lots of
+# debugging output about what is happening:
+
+# winston.remove(winston.transports.Console)
+# winston.add(winston.transports.Console, level: 'debug')
 
 #####################################################################
 # Generate the "secret_token" file as

            id               : @current_mesg_id
            edit_stack       : edit_stack
            last_version_ack : last_version_ack

    sync_ready: () =>
        @write_mesg('diffsync_ready')


    client_diffsync: (socket, mesg) =>
        @is_active = true

        write_mesg = (event, obj) ->
            if not obj?
                obj = {}
            obj.id = mesg.id
            socket.write_mesg 'json', message[event](obj)

        # Message from some client reporting new edits, thus initiating a sync.
        ds_client = @diffsync_clients[socket.id]
