feitianbubu
b3beb412bb
fix: mySQL does not support default false
2025-07-18 13:52:16 +08:00
CaIon
1437ceaa56
Merge branch 'alpha' into refactor_error
...
# Conflicts:
# controller/channel.go
# middleware/distributor.go
# model/channel.go
# model/user.go
# model/user_cache.go
# relay/common/relay_info.go
2025-07-10 15:11:55 +08:00
Xiangyuan-liu
db98c0f4b1
refactor: log params and channel params
...
refactor: log params and channel params
2025-07-07 14:26:37 +08:00
CaIon
cf11a22c3a
🔧 refactor(auth, channel, context): improve context setup and validation for multi-key channels
2025-07-06 12:37:56 +08:00
CaIon
49cb5f3fa3
🐛 fix(log): optimize channel ID collection by using a map to prevent duplicates
2025-06-14 18:23:25 +08:00
CaIon
4371717c78
fix: Resolving conflicts caused by mixing multiple databases
2025-06-14 17:51:05 +08:00
Apple\Apple
28c3aef76f
🔒 feat: Add user-configurable IP logging for consume and error logs
...
- Add IP field to Log model with database index and default empty value
- Implement conditional IP recording based on user setting in RecordConsumeLog and RecordErrorLog
- Add UserSettingRecordIpLog constant and update user settings API to handle record_ip_log field
- Create dedicated "IP记录" tab in personal settings under "其他设置" section
- Add IP column to logs table with help tooltip explaining recording conditions
- Make IP column visible to all users (not admin-only) with proper filtering for consume/error log types
- Restrict display of use_time and retry columns to consume and error log types only
- Update personal settings UI structure: rename "通知设置" to "其他设置" to accommodate new functionality
- Add proper translation support and maintain consistent styling across components
The IP logging feature is disabled by default and only records client IP addresses
for consume (type 2) and error (type 5) logs when explicitly enabled by users
in their personal settings.
2025-06-13 01:34:01 +08:00
wzxjohn
45073b3b2b
feat: improve log delete api
2025-04-28 11:25:04 +08:00
jasonzeng
75f0cb8eb0
feat: add error logging functionality to relay and update logs table for error type display
2025-04-12 00:43:34 +08:00
1808837298@qq.com
35cd4fde3a
refactor: Add index to Username column in Log model
2025-03-02 17:57:52 +08:00
1808837298@qq.com
d04d78a116
refactor: Enhance user context and quota management
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
- Add new context keys for user-related information
- Modify user cache and authentication middleware to populate context
- Refactor quota and notification services to use context-based user data
- Remove redundant database queries by leveraging context information
- Update various components to use new context-based user retrieval methods
2025-02-25 20:56:16 +08:00
1808837298@qq.com
5665b1a58b
refactor: Optimize log retrieval with separate channel name fetching ( fix #751 )
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
- Remove inline channel join in log queries
- Implement separate channel name lookup for logs
- Improve performance by fetching channel names in a single query
- Ensure channel names are correctly associated with logs
2025-02-12 19:19:13 +08:00
1808837298@qq.com
4470ef97f2
fix: clear channel name in user logs
2025-01-27 13:31:24 +08:00
1808837298@qq.com
1ae20bdd89
refactor: update log queries to explicitly reference 'logs' table for clarity and consistency
2025-01-22 13:37:32 +08:00
Lilo
a335d9e1f4
Add channel name (tooltip / detail) to logs
2025-01-09 17:07:28 +08:00
CalciumIon
0a845ae69f
fix: try to fix pgsql #682
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2024-12-31 02:10:19 +08:00
CalciumIon
aefd53b683
refactor: token cache logic
2024-12-30 17:10:48 +08:00
CalciumIon
966cdc1f7f
refactor: user cache logic
2024-12-29 16:50:26 +08:00
CalciumIon
c917ce64db
refactor: streamline log processing by introducing formatUserLogs function
2024-12-28 16:40:29 +08:00
CalciumIon
9e25f05930
refactor: enhance log retrieval and user interaction in LogsTable component
2024-12-28 15:34:28 +08:00
CalciumIon
7e8adb5b34
feat: Enhance logging functionality with group support
...
- Added a new 'group' parameter to various logging functions, including RecordConsumeLog, GetAllLogs, and GetUserLogs, to allow for more granular log tracking.
- Updated the logs table component to display group information, improving the visibility of log data.
- Refactored related functions to accommodate the new group parameter, ensuring consistent handling across the application.
- Improved the initialization of the group column for PostgreSQL compatibility.
2024-12-24 14:48:11 +08:00
licoy
80e1dafa28
修复独立日志数据库查询令牌日志时错误问题
2024-11-12 16:22:13 +08:00
CalciumIon
e77d94ca8d
fix: log page 'Cannot read properties of undefined (reading 'length')'
2024-08-14 22:43:57 +08:00
Calcium-Ion
a019acf9c2
Merge pull request #426 from OswinWu/fix-log-page
...
Fix log page
2024-08-13 17:50:03 +08:00
liuzhifei
3a6a30a811
support log db
2024-08-13 10:29:55 +08:00
Nothing.
d3e6151747
Merge branch 'Calcium-Ion:main' into fix-log-page
2024-08-11 11:22:34 +08:00
OswinWu
8a51ae300e
fix: log分页问题
2024-08-11 11:21:34 +08:00
CalciumIon
356e8a50df
fix: close #422
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
2024-08-09 16:14:05 +08:00
CalciumIon
d59bf0b0be
feat: 优化日志查询条件
2024-08-01 16:33:59 +08:00
CalciumIon
9f149bcae1
feat: 日志新增rpm和tpm数据。( close #384 )
2024-08-01 16:13:08 +08:00
CalciumIon
7354c10ad3
feat: update log search
2024-07-19 16:04:56 +08:00
CalciumIon
d06018cd3f
chore: gopool
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2024-07-19 01:07:37 +08:00
1808837298@qq.com
6400ef7d20
fix: GetLogByKey panic
2024-05-25 17:34:18 +08:00
CaIon
a127461b7f
feat: 日志显示重试信息
2024-05-16 16:41:08 +08:00
CaIon
391f0404a5
feat: 日志详情展示模型价格
2024-05-12 15:35:57 +08:00
1808837298@qq.com
672f261c3e
feat: 记录请求的token用量
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2024-03-04 14:58:30 +08:00
CaIon
ddec450bed
chore: change use_time to int
2024-01-22 17:07:18 +08:00
CaIon
3358471fb5
feat: 日志优化逻辑,新增请求时间和是否为stream字段
2024-01-21 15:01:59 +08:00
CaIon
aa8b722a13
chore: add SafeGoroutine
2024-01-12 13:49:53 +08:00
CaIon
5eaa5bf050
chore: cache username
2024-01-11 18:40:44 +08:00
CaIon
d15516d633
perf: 优化数据看板性能
2024-01-09 16:20:04 +08:00
CaIon
35579b6254
fix: fix JSON tag in Log struct
2024-01-08 11:25:22 +08:00
CaIon
dd0abc9447
feat: 新增数据看板
2024-01-07 18:31:14 +08:00
CaIon
d6d4623f77
消费日志添加用户调用前余额
2023-12-07 16:58:24 +08:00
CaIon
1f6fbbd406
fix log bug
2023-11-10 01:59:16 +08:00
CaIon
ba7e6324d3
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# README.md
# go.mod
# go.sum
# model/log.go
# web/src/App.js
# web/src/components/ChannelsTable.js
2023-10-16 17:31:26 +08:00
CaIon
87fe0c4efc
fix bug
2023-10-11 21:47:59 +08:00
JustSong
5557335639
chore: sync database indices with pro version
2023-10-02 12:11:02 +08:00
JustSong
e159737938
chore: sync model schema
2023-09-29 18:13:57 +08:00
CaIon
4199979c01
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# model/log.go
2023-09-24 12:34:29 +08:00