Commit 4f3e75b1 authored by Waleed Akbar's avatar Waleed Akbar
Browse files

feat: Update logging message formatting in callback methods

parent 5e07d785
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ class _Callback:
        @param old_data: Resource representation before retrieval, if applicable, otherwise `None`
        @returns boolean indicating whether additional callbacks should be executed, defaults to False
        '''
        MSG = 'match={:s}, path={:s}, old_data={:s}'
        MSG = 'match={}, path={}, old_data={}'
        msg = MSG.format(match.groupdict(), path, old_data)
        raise NotImplementedError(msg)

@@ -66,7 +66,7 @@ class _Callback:
        @param new_data: Resource representation after change, if applicable, otherwise `None`
        @returns boolean indicating whether additional callbacks should be executed, defaults to False
        '''
        MSG = 'match={:s}, path={:s}, old_data={:s}, new_data={:s}'
        MSG = 'match={}, path={}, old_data={}, new_data={}'
        msg = MSG.format(match.groupdict(), path, old_data, new_data)
        raise NotImplementedError(msg)

@@ -81,7 +81,7 @@ class _Callback:
        @param input_data: Input data, if applicable, otherwise `None`
        @returns Optional[Dict] containing output data, defaults to None
        '''
        MSG = 'match={:s}, path={:s}, input_data={:s}'
        MSG = 'match={}, path={}, input_data={:s}'
        msg = MSG.format(match.groupdict(), path, input_data)
        raise NotImplementedError(msg)