Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/LogMachine.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ public static function create(array $config = []): ColorLogger

// If no room name is provided, auto-generate one
if (empty($centralCfg['room'])) {
$centralCfg['room'] = strtolower($user . '_' . $module . rand(100, 999));

// Console log (debug notice for devs)
echo "[LogMachine] No room name provided. Auto-generated: {$centralCfg['room']}\n";
/**
* this might currently cause a bug, im asumming user names are unique
* if at all there is a future error, just don't be lazy and setup the
* room name lol :P
*/
$centralCfg['room'] = strtolower($user . '_' . $module);
}

// Push HTTP transport handler
Expand Down
Loading