Skip to content

Instantly share code, notes, and snippets.

@igor-egorov
Last active July 13, 2021 21:23
Show Gist options
  • Save igor-egorov/e790fe4371adf587cc8800607aa1a32f to your computer and use it in GitHub Desktop.
Save igor-egorov/e790fe4371adf587cc8800607aa1a32f to your computer and use it in GitHub Desktop.
Kagome connection issue
Index: core/log/configurator.cpp
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/core/log/configurator.cpp b/core/log/configurator.cpp
--- a/core/log/configurator.cpp (revision bfeea141e39af5652f1fa26850dbcc6541ca5005)
+++ b/core/log/configurator.cpp (date 1626208757365)
@@ -19,10 +19,11 @@
groups:
- name: main
sink: console
- level: trace
+ level: error
is_fallback: true
children:
- name: libp2p
+ level: error
- name: kagome
children:
- name: injector
@@ -53,21 +54,23 @@
children:
- name: voting_round
- name: runtime
+ level: error
children:
- name: wasm
- - name: extentions
- - name: binatien
+ - name: extensions
+ - name: binaryen
- name: metrics
- name: network
children:
- name: protocols
- name: changes_trie
+ level: error
- name: storage
- name: pubsub
- name: others
children:
- name: testing
- - name: debug
+ - name: error
# ----------------
)");
}
Index: cmake/Hunter/config.cmake
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/cmake/Hunter/config.cmake b/cmake/Hunter/config.cmake
--- a/cmake/Hunter/config.cmake (revision bfeea141e39af5652f1fa26850dbcc6541ca5005)
+++ b/cmake/Hunter/config.cmake (date 1626207449242)
@@ -16,8 +16,8 @@
# )
hunter_config(libp2p
- URL https://github.com/libp2p/cpp-libp2p/archive/393119ee18a6a3f6b8d8deeaaa77e2ad401bd8cb.tar.gz
- SHA1 31886c5235f60acba48bd2455b53e34f48c9b7fc
+ URL https://github.com/libp2p/cpp-libp2p/archive/c56fb58cf282b3cd13400a1230cd4cb741e339ec.tar.gz
+ SHA1 b2b9e0a8d85494adaa0b59f3c7de1692bbc3fb05
CMAKE_ARGS TESTING=OFF EXAMPLES=OFF EXPOSE_MOCKS=ON
KEEP_PACKAGE_SOURCES
)
Index: node/main.cpp
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/node/main.cpp b/node/main.cpp
--- a/node/main.cpp (revision bfeea141e39af5652f1fa26850dbcc6541ca5005)
+++ b/node/main.cpp (date 1626208757312)
@@ -43,6 +43,7 @@
configuration.verbosity());
auto app =
std::make_shared<application::KagomeApplicationImpl>(configuration);
+ kagome::log::setLevelOfLogger("StreamEngine", configuration.verbosity());
app->run();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment