惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
G
Google Developers Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
L
LangChain Blog
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
小众软件
小众软件
WordPress大学
WordPress大学
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
Jina AI
Jina AI
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
D
Docker

又见苍岚

COLMAP PatchMatch Stereo 算法详解 事件驱动的状态机框架:从理论到工程实践 Git 在国内网络环境下无法 Push 的排查与修复 —— 配置 Clash 代理 分段五次多项式插值原理详解 路径插值方法深度对比研究 Claude Code 使用指南 OpenClaw 记忆管理与技能创建指南 CBS(Conflict-Based Search)算法详解 A* 算法及其变种详解 OpenClaw 配置多 Agents Windows Powershell 无法加载文件,因为在此系统上禁止运行脚本问题的解决方案 MaxClaw 安装流程 大模型 AI 名词介绍 AList 网盘聚合工具简介 Protobuf 简介与测试 Claude Code 简介以及 GLM 4.7 模型接入 Github 歌词下载工具 163MusicLyrics Python __getattr__ 懒加载 Python TypedDict 机器人仿真平台 Gazebo 安装记录 机器人仿真平台 Gazebo 简介 多机器人路径规划问题(Multi-Agent Path Finding, MAPF)简介 Python exifread 读取修改过的 jpeg 信息错误问题修复 3D 坐标系变换的理解 3D 旋转矩阵基本概念 MongoDB Compass 介绍 Python 环境管理工具 uv Flutter 开发指南 Snipaste 安装下载与黑屏问题解决方案 全局路径规划算法记录
Python logging 日志级别影响 mongodb 日志输出
Yiwei Zhang · 2025-02-05 · via 又见苍岚
1
2
3
4
5
6
7
8
9
DEBUG:pymongo.connection:{"clientId": {"$oid": "67a337a7af112c732060c076"}, "message": "Connection pool ready", "serverHost": "boeye-database", "serverPort": 27017}
DEBUG:pymongo.serverSelection:{"message": "Server selection started", "selector": "Primary()", "operation": "buildinfo", "topologyDescription": "<TopologyDescription id: 67a337a7af112c732060c076, topology_type: Sharded, servers: [<ServerDescription ('boeye-database', 27017) server_type: Mongos, rtt: 0.0041245620013796724>]>", "clientId": {"$oid": "67a337a7af112c732060c076"}}
DEBUG:pymongo.serverSelection:{"message": "Server selection succeeded", "selector": "Primary()", "operation": "buildinfo", "topologyDescription": "<TopologyDescription id: 67a337a7af112c732060c076, topology_type: Sharded, servers: [<ServerDescription ('boeye-database', 27017) server_type: Mongos, rtt: 0.0041245620013796724>]>", "clientId": {"$oid": "67a337a7af112c732060c076"}, "serverHost": "boeye-database", "serverPort": 27017}
DEBUG:pymongo.connection:{"clientId": {"$oid": "67a337a7af112c732060c076"}, "message": "Connection checkout started", "serverHost": "boeye-database", "serverPort": 27017}
DEBUG:pymongo.connection:{"clientId": {"$oid": "67a337a7af112c732060c076"}, "message": "Connection created", "serverHost": "boeye-database", "serverPort": 27017, "driverConnectionId": 1}
DEBUG:pymongo.connection:{"clientId": {"$oid": "67a337a7af112c732060c076"}, "message": "Connection ready", "serverHost": "boeye-database", "serverPort": 27017, "driverConnectionId": 1, "durationMS": 0.01286757799971383}
DEBUG:pymongo.connection:{"clientId": {"$oid": "67a337a7af112c732060c076"}, "message": "Connection checked out", "serverHost": "boeye-database", "serverPort": 27017, "driverConnectionId": 1, "durationMS": 0.01822680099576246}
DEBUG:pymongo.command:{"clientId": {"$oid": "67a337a7af112c732060c076"}, "message": "Command started", "command": "{\"buildinfo\": 1, \"lsid\": {\"id\": {\"$binary\": {\"base64\": \"pnTBlgQFSIu6WYAtmIecNw==\", \"subType\": \"04\"}}}, \"$clusterTime\": {\"clusterTime\": {\"$timestamp\": {\"t\": 1738749863, \"i\": 14}}, \"signature\": {\"hash\": {\"$binary\": {\"base64\": \"AAAAAAAAAAAAAAAAAAAAAAAAAAA=\", \"subType\": \"00\"}}}}, \"$db\": \"admin\"}", "commandName": "buildinfo", "databaseName": "admin", "requestId": 424238335, "operationId": 424238335, "driverConnectionId": 1, "serverConnectionId": 81220, "serverHost": "boeye-database", "serverPort": 27017}
DEBUG:pymongo.command:{"clientId": {"$oid": "67a337a7af112c732060c076"}, "message": "Command succeeded", "durationMS": 4.216, "reply": "{\"version\": \"7.0.12\", \"gitVersion\": \"b6513ce0781db6818e24619e8a461eae90bc94fc\", \"allocator\": \"tcmalloc\", \"javascriptEngine\": \"mozjs\", \"sysInfo\": \"deprecated\", \"versionArray\": [7, 12], \"openssl\": {\"running\": \"OpenSSL 3.0.2 15 Mar 2022\", \"compiled\": \"OpenSSL 3.0.2 15 Mar 2022\"}, \"buildEnvironment\": {\"distmod\": \"ubuntu2204\", \"distarch\": \"x86_64\", \"cc\": \"/opt/mongodbtoolchain/v4/bin/gcc: gcc (GCC) 11.3.0\", \"ccflags\": \"-Werror -include mongo/platform/basic.h -ffp-contract=off -fasynchronous-unwind-tables -g2 -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -gdwarf-5 -fno-omit-frame-pointer -fno-strict-aliasing -O2 -march=sandybridge -mtune=generic -mprefer-vector-width=128 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -gdwarf64 -Wa,--nocompress-debug-sections -fno-builtin-memcmp -Wimplicit-fallthrough=5\", \"cxx\": \"/opt/mongodbtoolchain/v4/bin/g++: g++ (GC...", "commandName": "buildinfo", "databaseName": "admin", "requestId": 424238335, "operationId": 424238335, "driverConnectionId": 1, "serverConnectionId": 81220, "serverHost": "boeye-database", "serverPort": 27017}

注意: logging.basicConfig(level=logging.INFO, force=True) 的 force 参数设置为 True 时会删除并关闭连接到根日志记录器的其他 logging 对象,此时再次操作被关闭的日志对象时会报错: