mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 06:55:29 +00:00
Change crashdump file name format
this has bothered me for ages since it sorts into some absurd order by default due to the name starting with the day of the week. this way it'll ensure that the files are always alphanumerically ordered, which means the most recent crashdump should always be at the bottom.
This commit is contained in:
parent
4c3a2ef46e
commit
48b80ecf78
@ -1618,7 +1618,7 @@ class Server{
|
||||
if(!is_dir($crashFolder)){
|
||||
mkdir($crashFolder);
|
||||
}
|
||||
$crashDumpPath = Path::join($crashFolder, date("D_M_j-H.i.s-T_Y", (int) $dump->getData()->time) . ".log");
|
||||
$crashDumpPath = Path::join($crashFolder, date("Y-m-d_H.i.s_T", (int) $dump->getData()->time) . ".log");
|
||||
|
||||
$fp = @fopen($crashDumpPath, "wb");
|
||||
if(!is_resource($fp)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user