8000 Idempotent patching · Issue #109 · uber-go/gopatch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Idempotent patching #109
Open
Open
@mandarjog

Description

@mandarjog

I am using the following patch to convert unchecked Debug to wrapped by if logging.isDebugEnabled() .
I would like to make this idempotent so it can be repeatedly applied.

How do I do that?

@@
var x expression
@@
-logging.L(x).Debug(...)
+if logging.IsDebugEnabled(x) {
+    logging.L(x).Debug(...)
+}
< 4002 div class="CommentLoading-module__CommentLoadingContentWrapper--xxqYQ">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0